summaryrefslogtreecommitdiffstats
path: root/jq.1.prebuilt
diff options
context:
space:
mode:
authorThomas Bozeman th026106 <thomas.bozeman@digitalglobe.com>2023-10-03 17:50:08 +0000
committerEmanuele Torre <torreemanuele6@gmail.com>2023-10-03 22:48:12 +0200
commit7f547827e47b5ade563a293329deb4226496d72f (patch)
tree7918c86308a5d0caffc97b76a7a120e3023b37cd /jq.1.prebuilt
parent6b5a18f0369eb765c1c9542cc886d389dac66c50 (diff)
Simplify `pick` example
Old pick example included input array in command line, making `input` confusing and redundant.
Diffstat (limited to 'jq.1.prebuilt')
-rw-r--r--jq.1.prebuilt4
1 files changed, 2 insertions, 2 deletions
diff --git a/jq.1.prebuilt b/jq.1.prebuilt
index a421a502..1f604e26 100644
--- a/jq.1.prebuilt
+++ b/jq.1.prebuilt
@@ -1,5 +1,5 @@
.
-.TH "JQ" "1" "September 2023" "" ""
+.TH "JQ" "1" "October 2023" "" ""
.
.SH "NAME"
\fBjq\fR \- Command\-line JSON processor
@@ -1066,7 +1066,7 @@ jq \'pick(\.a, \.b\.c, \.x)\'
{"a": 1, "b": {"c": 2, "d": 3}, "e": 4}
=> {"a":1,"b":{"c":2},"x":null}
-jq \'[1,2,3,4] | pick(\.[2], \.[0], \.[0])\'
+jq \'pick(\.[2], \.[0], \.[0])\'
[1,2,3,4]
=> [1,null,3]
.