Sometimes comments are annoying. Like the default Debian squid.conf or samba.conf. This one-liner hides the output of comments. It won’t print any lines starting with # (or empty lines).

sed -e '/^[^#]./!d' /etc/squid/squid.conf