Hands-on task
This task is step 8 of the course “JSON, YAML and XML in the terminal”
jq: sum by group
Compute the total number of logins among users with the role admin in /root/users.json and write a single number to /root/admin_logins.txt.
Reference:jq
What you'll practise:
- jq
- select
- filtering
- aggregation
- add