back to labs
Sed: Delete Matching Lines
EasySed & Awk3-5 minThe brief
You want a clean, comment-free view of a config: every line that starts with '#' should go.
Produce /root/work/out.txt with all comment lines removed from /root/work/config.
Everything else stays exactly as it is — including blank lines, and lines that merely mention a # partway through.
What you'll do
- Remove every line beginning with #
- Save the remaining lines unchanged to /root/work/out.txt
Hands-on lab: you work on a real Linux box in your browser, graded on the machine's actual state.
