grepping out comments

By | April 25, 2011

egrep -v “^#|^$” <filename>

eg :-

egrep -v “^#|^$” /etc/screenrc