Posts Tagged ‘comment’

Show a config file without comments

Friday, May 28th, 2010
~$ egrep -v "^$|^[[:space:]]*#" /your/path/file

or

~$ awk '!/^\ *#/&&(length > 0)' /your/path/file