~/sales.txt has one line for each product: the name, then the number sold this week. Use sort to answer the questions.
Lab3 objectives100 XP
~/sales.txt has one line for each product: the name, then the number sold this week. Use sort to answer the questions.
Sort by name
Sort the lines by name.
Sort by name
Sort the lines by name.
The best seller
Sort on column 2, as numbers, largest first.
See why -n matters
Run sort -k2 -r ~/sales.txt with no -n.