DZone 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
Remove Comments From A File
Remove all comment lines from a file.
sed -e '/^#/d' $1 | more
or to output it to a new file
sed -e '/^#/d' $1 > $1.nocomments