Hands-on task
This task is step 6 of the course “awk and datamash: reports from tables”
awk: line with the maximum
/root/scores.txt has two columns: a name and a score. Find the line with the maximum score (the second field) and write it in full to /root/top.txt.
Reference:awk
What you'll practise:
- awk
- pattern-action
- END block
- finding the maximum