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:
parent
86139ae4be
commit
1c66acf268
1 changed files with 4 additions and 0 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Reference in a new issue