Strip Comment Lines
Clean text with comment lines removed
Clean DataHow it works
$ grep --invert=true --pattern=^# | trim-lines Examples
Strip comments from a config file before sharing
Usage
"# Database config
DB_HOST=localhost
# Port for local dev
DB_..." | grep --invert=true --pattern=^# | trim-lines Remove comment lines from a script for documentation
Usage
"# TODO: refactor this
server.start()
# FIXME: race condition..." | grep --invert=true --pattern=^# | trim-lines Remove category headers from a text-file todo list
Usage
"# Personal notes
Buy groceries
# Done
Pick up dry cleaning
C..." | grep --invert=true --pattern=^# | trim-lines