Hands-on task
This task is step 1 of the course “awk and datamash: reports from tables”
awk: the second column
The file /root/people.txt has three space-separated fields: name, age, job title. Write all the ages (the second field) to /root/ages.txt — one per line, in the original order.
What you'll practise:
- awk
- fields $1 $2
- output redirection