CodeFaster

CodeFaster

Share this post

CodeFaster
CodeFaster
bash 1-liner to strip comments from AI generated code

bash 1-liner to strip comments from AI generated code

Tyler Adams's avatar
Tyler Adams
Jan 18, 2024
∙ Paid
2

Share this post

CodeFaster
CodeFaster
bash 1-liner to strip comments from AI generated code
1
Share
$ pbp | grep -v "^ *#" | pbc
pbp

is paste to stdout

grep -v "^ *#" 

Filter all lines that have only spaces before a #.

CodeFaster is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.

pbc

pbc is write stdin to the copy buffer

Happy hacking

CodeFaster is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 Tyler Adams
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share