RE: [squid-users] Mailing Etiquette (was: newbie config help)

From: Winston Gutkowski <winston.gutkowski@dont-contact.us>
Date: Thu, 13 Dec 2001 12:25:26 -0800

Not to flog a dead horse, but personally I use:
sed "s/[:blank:]*#.*$//" yourfile.cfg
This will remove comments, even if they are combined on a line with data.

Winston

-----Original Message-----
From: Alex Rousskov [mailto:rousskov@measurement-factory.com]
Sent: Thursday, December 13, 2001 11:59
To: Dave Raven
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] Mailing Etiquette (was: newbie config help)

On Thu, 13 Dec 2001, Dave Raven wrote:

> If you are going to send your config file, please
> grep -v "#" yourconfigfile.conf

        grep -v '^#' yourconfigfile.conf

In case a comment follows an enabled option. A more elaborate pattern
'^(#|$)' can be used with egrep to filter comments and empty lines.

Alex.

Alex.
Received on Thu Dec 13 2001 - 13:25:16 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:05:21 MST