pipr.tools
Pipes
Clean Email Strip formatting from pasted email for clean plain text Clean AI Output Clean plain text from ChatGPT or AI output Decode & Format JWT Decode a JWT and pretty-print header and payload Word Frequency Count word frequency in text

Strip Comment Lines

Clean text with comment lines removed

Clean Data
Input0 chars
Output0 chars

How 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