Grep to Remove Spaces and Comments (#)

Sometimes I just want to look at the content of a config file and not all the descriptions.

grep -v "\#\|^[[:space:]]*$"

Comments are closed.