jq:从对象列表中选择键等于值的条目
此示例在给定 JSON 条目列表的情况下,选择 .service 等于 "mongodb" 的所有条目(即 {"service": "mongo"}:
jq_select_mongo.sh
jq 'map(select(.service=="mongo"))'Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow