Hands-on task
This task is step 2 of the course “cut, sort, uniq and friends”
cut: extract a column
In /root/data.txt there are lines of the form name:uid:shell (fields separated by colons). Extract the third field (shell) from each line and write it to /root/shells.txt.
Reference:cut
What you'll practise:
- cut
- fields
- delimiter
- text columns