Hands-on task
This task is step 3 of the course “First steps with text”
Leave only the settings in a config
The config /root/data/shop.conf is overgrown with comments: the program skips lines that start with # — they're notes for humans. There's even an old setting that was commented out. There are no other # in the file.
Save to /root/active.conf only the settings in effect — every line except the comments, in the same order. Don't change shop.conf itself.
What you'll practise:
- grep -v
- comments in configs
- quotes