jq: add 'combines multiple filters' example (#2917)

This commit is contained in:
Bruno Bigras
2019-04-17 15:55:23 +01:00
committed by Starbeamrainbowlabs
parent 86139ae4be
commit 1c66acf268
+4
View File
@@ -25,3 +25,7 @@
- Output the value of a given key of each element in a JSON text from stdin:
`cat {{file.json}} | jq 'map(.{{key_name}})'`
- Combine multiple filters:
`cat {{file.json}} | jq 'unique | sort | reverse`