1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-03 22:15:42 +02:00

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

This commit is contained in:
Bruno Bigras 2019-04-17 10:55:23 -04:00 committed by Starbeamrainbowlabs
parent 86139ae4be
commit 1c66acf268

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`