We can parse a file with egrep
and a basic regular expression to display only lines which don’t start with a comment:
egrep -v "^\s*(#|$)" $filename
Maybe set it as a shell alias while we’re at it:
alias ccat='egrep -v "^\s*(#|$)"'
We can parse a file with egrep
and a basic regular expression to display only lines which don’t start with a comment:
egrep -v "^\s*(#|$)" $filename
Maybe set it as a shell alias while we’re at it:
alias ccat='egrep -v "^\s*(#|$)"'