[Gllug] Silly little grep question

Tethys tet at accucard.com
Mon Mar 3 08:40:51 UTC 2003


Richard Cohen writes:

>grep -v \# /etc/squid/squid.conf | grep -v ^\$
>
>i.e. also filter out lines where the end of the line immediately follows the
>start of the line.

Or in a single regexp:

	grep '^[^#]' /etc/squid/squid.conf

Tet

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list