Hands-on task
This task is step 19 of the course “awk and datamash: reports from tables”
Top Products by Units Sold
Using /root/sales.tsv, compute the total quantity for each product, then sort the products by that sum in descending order and write the result to /root/top.tsv (one line per product: name and sum, with the best-seller first).
What you'll practise:
- datamash
- grouping
- sort
- sorting by column
- pipeline