Ficheros configuración quitar almohadillas

cat /etc/vsftpd.conf | sed '/ *#/d; /^ *$/d'
En el ejemplo visualizo el contenido del archivo de configuración de vsftp, quitando con sed los comentarios, de esta forma puedo ver sólo los parámetros establecidos. Otro ejemplo para ver limpia la configuración de Samba:
cat /etc/samba/smb.conf | sed '/ *#/d; /^ *$/d'
Otro ejemplo útil, para el interminable fichero de squid:
cat /etc/squid/squid.conf | sed '/ *#/d; /^ *$/d'
Ejemplo de salida para Squid:
acl all src all acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 acl purge method PURGE acl CONNECT method CONNECT icp_access allow localnet icp_access deny all http_port 3128 transparent hierarchy_stoplist cgi-bin ? access_log /var/log/squid/access.log refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880 refresh_pattern . 0 20% 4320 acl shoutcast rep_header X-HTTP09-First-Line ^ICY\s[0-9] upgrade_http0.9 deny shoutcast acl apache rep_header Server ^Apache acl redlocal src 192.168.200.0/255.255.255.0 acl prohibidas url_regex -i youtube facebook tuenti http_access allow manager localhost http_access deny manager http_access allow purge localhost http_access deny purge http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localhost http_access deny prohibidas http_access allow redlocal http_access deny all broken_vary_encoding allow apache extension_methods REPORT MERGE MKACTIVITY CHECKOUT hosts_file /etc/hosts coredump_dir /var/spool/squid