Skip lines that begin with `#`.
Section: sed Line Deletion and Printing
Delete comment lines
bash
bash
sed '/^[[:space:]]*#/d' config.iniExplanation
Especially useful for previewing meaningful config lines only.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing sed Line Deletion and Printing