Step: Filter with select()
Filter with select()
select(condition) passes its input through only when the condition is true, and emits nothing otherwise. Combine it with .[] to filter a stream.
Why it matters: select is jq's WHERE clause — the workhorse of real queries.
Your turn: keep only products whose price is greater than 20.
Input:
Expected:
Step 17 of 27