1
0
Эх сурвалжийг харах

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

Bruno Bigras 5 жил өмнө
parent
commit
1c66acf268
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 4 0
      pages/common/jq.md

+ 4 - 0
pages/common/jq.md

@@ -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`