Hands-on task
This task is step 16 of the course “awk and datamash: reports from tables”
Minimum and Maximum
Using /root/sales.tsv, find both the minimum and maximum value in the second column at once and write them to /root/range.txt on one line (minimum, then maximum, separated by a tab — as the tool outputs).
Reference:datamash
What you'll practise:
- datamash
- column aggregation
- min/max
- multiple operations in one pass