Hands-on task
This task is step 12 of the course “Text in the terminal: grep, sed, awk”
sed: strip blank lines and comments
Clean up /root/in.txt: delete blank lines and comment lines (starting with #). Write the result to /root/out.txt.
What you'll practise:
- sed
- deleting lines
- regular expressions
- anchors
- multiple commands