Hands-on task
This task is step 14 of the course “awk and datamash: reports from tables”
Average of a Column
Using the data in /root/sales.tsv, compute the average number of units sold (the arithmetic mean of the second column) and write it to /root/avg.txt.
Reference:datamash
What you'll practise:
- datamash
- column aggregation
- arithmetic mean
- tsv