Blackhold

cat a un fichero, sin los comentarios

Posted on desembre 22nd, 2009 by Blackhold

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
  • email
  • Identi.ca
  • Meneame
  • Twitter
  • del.icio.us
  • BarraPunto
  • LinkedIn
  • Facebook
  • Reddit
  • RSS
  • Add to favorites

This entry was posted on dimarts, desembre 22nd, 2009 at 23:36 and is filed under Linux. 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

10 visitors online now
10 guests, 0 members
Max visitors today: 10 at 11:39 am GMT-2
This month: 25 at 03-07-2010 04:37 pm GMT-2
This year: 87 at 02-15-2010 10:14 am GMT-2
All time: 87 at 02-15-2010 10:14 am GMT-2