Hands-on task
This task is step 7 of the course “cut, sort, uniq and friends”
nl: number the lines
Number the lines of the file /root/text.txt with the nl utility (by default it numbers only non-empty lines) and write the result to /root/numbered.txt.
What you'll practise:
- nl
- line numbering
- text formatting
- redirection