Re: [squid-users] Squid Blocking non-listed websites

From: Ben Hollingsworth <ben.hollingsworth@dont-contact.us>
Date: Mon, 04 Feb 2008 12:09:41 -0600

Amos Jeffries wrote:
> Go Wow wrote:
>> whats the command to get only those configuration lines from
>> squid.conf leaving the comment lines. If i get it i will post my
>> config file.
>
> grep -v -E "^#" squid.conf

Or to also remove all the empty lines and trailing comments from valid lines:

sed -e 's/ *#.*//' squid.conf | sed -e '/^$/d'

Received on Mon Feb 04 2008 - 11:09:26 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:04 MST