jq: add 'combines multiple filters' example (#2917)
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
86139ae4be
commit
1c66acf268
@@ -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`
|
||||
|
Reference in New Issue
Block a user