Hands-on task
This task is step 4 of the course “JSON, YAML and XML in the terminal”
jq: filter an array
/root/users.json is an array of objects with name and age fields. Output the names of users older than 30 (age > 30), one per line, into /root/adults.txt.
What you'll practise:
- jq
- array filtering
- select
- pipeline
- raw output