jq select()

1 개요[ | ]

jq select
root@wsl:~# cat a.json
[1,5,3,0,7]
root@wsl:~# cat a.json | jq '.[] | select(.>2)'
5
3
7
root@wsl:~# cat a.json | jq 'map(select(. > 2))'
[
  5,
  3,
  7
]

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}