sed -e '/^#/d' $1 | more
or to output it to a new file
sed -e '/^#/d' $1 > $1.nocomments
11381 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
sed -e '/^#/d' $1 | more
sed -e '/^#/d' $1 > $1.nocomments
You need to create an account or log in to post comments to this site.
sed -e '/^#[^!]/d' chngcase.sh | less
would prevent the shebang line from getting removed.