Quantcast
Viewing all articles
Browse latest Browse all 17

Files without comments

Use *awk to remove comment lines that start with a '#' making it easier to view the actual configurations/settings

cat /path/to/file | awk '!/^#/ {print $0}'

[Edit]

To remove the blank lines as well as the comments, alter the awk command to

awk '!/^#|^$/ {print $0}'

Viewing all articles
Browse latest Browse all 17

Trending Articles