Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 215 Bytes

jq.md

File metadata and controls

8 lines (5 loc) · 215 Bytes

jq: JSON processor

Select a single item from a list

$ cat ... | jq -r '.[].targets[0] | split(":")[0]'
$ cat ... | jq -r '.[].targets[0] | split(":")[0][1:-1]' (then shorten the output text)