Re: [squid-users] OT: Removing unused lines

From: Wong <wongbali@dont-contact.us>
Date: Sat, 22 Mar 2008 13:11:55 +0800

Hi Peng & Adrian,

Thans for your advise.

Both of method have same result, I can choose one of them.

Thx & Rgds,

Awie

----- Original Message -----
From: "J. Peng" <peng.kyo@gmail.com>
To: "Wong" <wongbali@telkom.net>
Cc: "Squid-users" <squid-users@squid-cache.org>
Sent: Saturday, March 22, 2008 11:43
Subject: Re: [squid-users] OT: Removing unused lines

> Try this perl command:
>
> $ perl -nle 'next if /^$|^\s*#/;print' squid.conf
>
> On Sat, Mar 22, 2008 at 11:34 AM, Wong <wongbali@telkom.net> wrote:
>> Hi,
>>
>> Sorry for this OT posting.
>>
>> Need advise how to remove unused lines in squid.conf such as remarked
>> (commented) or no character lines, by using Linux utility (sed and
>> strip?).
>>
>> Thank you very much for your kind help.
>>
>> Thx & Rgds,
>>
>>
>> Awie
>>
>>
>>
>>
>
>
>
> --
> Jeff (Joy) Peng
> Tencent QQMail Dept.
>
Received on Fri Mar 21 2008 - 23:36:48 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Apr 01 2008 - 13:00:05 MDT