[Gllug] Silly little grep question
Richard Cohen
richard at vmlinuz.org
Mon Mar 3 02:47:46 UTC 2003
On Mon, 3 Mar 2003, Jonathan Harker wrote:
> Okay call me dumb, but the output from
>
> grep -v \# /etc/squid/squid.conf
>
> is great because you get all the options without all the poxy comments, but
> you get all the blank lines. How would I go about removing the blank lines as
> well?
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.
> Luv Jon
Cheers
Richard
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list