Hands-on task
This task is step 17 of the course “sed: the stream editor”
Clean up a config
The file /root/messy.conf is cluttered: it has comment lines (starting with #) and blank lines. With a single sed invocation remove both, leaving only the meaningful configuration lines, and write the result to /root/clean.conf.
Reference:sed
What you'll practise:
- sed
- multiple commands
- ^ and $
- deleting lines
- config cleanup