back to labs
Dojo: Strip Comments & Blanks
EasyOne-Liner Dojo5 minThe brief
The config /root/app.conf is cluttered with # comment lines and blank lines. In ONE line, write only the REAL settings (drop every line that starts with # and every empty line) to /root/answer.txt, in order.
One grep with an inverted, alternation pattern does both filters at once.
What you'll do
- Write only the non-comment, non-blank lines of /root/app.conf to /root/answer.txt, in one line
Hands-on lab: you work on a real Linux box in your browser, graded on the machine's actual state.
