View Config Files Without Comments
grep -vE "(^$|^#)" /etc/squid/squid.conf.defaultor
grep ^[^#] /etc/squid/squid.conf.default
- http://stackoverflow.com/questions/364105/using-grep-with-regular-expression-to-filter-out-matches
- http://stackoverflow.com/questions/614654/linux-removing-files-that-dont-contain-all-the-words-specified
- http://www.linuxquestions.org/questions/linux-general-1/grep-remove-lines-which-only-contain-whitespace-721566/
- http://www.commandlinefu.com/commands/view/3877/grep-v-with-multiple-patterns.
- http://www.linuxjournal.com/content/tech-tip-view-config-files-without-comments
EmoticonEmoticon