Hands-on task
This task is step 13 of the course “awk and datamash: reports from tables”
Sum of a Column
/root/sales.tsv has two tab-separated columns: the product name and the number of units sold. Compute the total number of units sold (the entire second column) and write the result to /root/total.txt.
Reference:datamash
What you'll practise:
- datamash
- aggregation
- columns
- tsv
- sum