Merge pull request #93 from tlvince/patch-2

Add a jq filter example
pull/94/head
Igor Chubin 5 years ago committed by GitHub
commit 8dcabf4c9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -82,3 +82,10 @@ jq -r '(map(keys) | add | unique | sort) as $cols | .[] as $row | $cols | map($r
#
# => 2,,1
# ,4,3
# Filter a list of objects
jq 'map(select(.name == "foo"))'
#
# [ { "name": "foo" }, { "name": "bar" } ]
# => [ { "name": "foo" } ]

Loading…
Cancel
Save