Strips out lines which start with #:

egrep -v "^\s*(#|$)" $filename 

More convenience:

alias ccat='egrep -v "^\s*(#|$)"'