jq select()

Jmnote (토론 | 기여)님의 2022년 10월 28일 (금) 19:55 판 (→‎개요)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

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 }}