Viewing heavily commented config files

Just a quick one, as I haven't posted for a while. This is a cool trick for getting the juice out of heavily commented files. In particular I used this on /etc/samba/smb.conf, but also good for apache2.conf, php.ini etc. The magic is this. grep -v -e "^#" -e "^;" -e "^$" /etc/samba/smb.conf Basically, ignore all … Read more