Blackhold

cat a un fichero, sin los comentarios

Posted on desembre 22nd, 2009 by admin

enga, para la toolchain :D

cat /etc/squid/squid.conf | egrep -v "(^#.*|^$)"


explicación:

egrep -v      means leave the following out
^#.*          significa las líneas que empiezan por #
|             significa o (or)
^$            significa las líneas vacias

This entry was posted on dimarts, desembre 22nd, 2009 at 23:36 and is filed under bash. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Response

« »

guy fawkes