Remove comments from a file
sed -e '/^#/d' $1 | more
or to output it to a new file
sed -e '/^#/d' $1 > $1.nocomments
DZone Snippets > fak3r > sed
12134 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
fak3r http://fak3r.com
sed -e '/^#/d' $1 | more
sed -e '/^#/d' $1 > $1.nocomments