1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 06:02:18 +02:00

jq: add 'output to string' example (#2916)

This commit is contained in:
Bruno Bigras 2019-04-22 16:22:29 -04:00 committed by Marco Bonelli
parent d0677b83d2
commit c24e2d610c

View file

@ -29,3 +29,7 @@
- Combine multiple filters:
`cat {{file.json}} | jq 'unique | sort | reverse'`
- Output the value of a given key to a string (and disable JSON output):
`cat {{file.json}} | jq --raw-output '"some text: \(.{{key_name}})"'`