cat file.txt | egrep -v '^s*(#|$)'
or
cat file.txt | grep -Ev '(#.*$)|(^$)'
— return to gimbo wiki home page