Hands-on task
This task is step 4 of the course “cut, sort, uniq and friends”
sort: by a numeric column
In /root/scores.txt there are lines of the form name score. Sort them by score (the second field) in descending order and write the result to /root/sorted.txt.
Reference:sort
What you'll practise:
- sort
- sort by field
- numeric sort
- flags -k -n -r