Mailinglist Archive: opensuse-security (457 mails)

< Previous Next >
Re: [suse-security] Grep uncomment lines from .conf
  • From: "Richard" <suse-security@xxxxxxxxxxxxxxxx>
  • Date: Thu, 12 Feb 2004 14:10:08 +0100 (CET)
  • Message-id: <56388.217.68.50.10.1076591408.squirrel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Hello,

I get the distinct impression that you are trying to grep non-commented,
non-blank lines from a file.
Is this correct?


Regards,

Richard



Arie Reynaldi Zanahar said:
> Dear,
>
> I want to grep lines that not commented from a file, Someone said that
> I can use
> $sed -e '/^[[:space:]]*#/d;/^[[:space:]]*$/d' file.conf
>
> but I think it's too long, I have use
> $egrep -v '^#' file.conf
>
> but it containt so many blank lines. Is there any suggest what should I
> use ? Maybe like combining egrep with other script.. As simple as
> possible :)
>
> regards,
>
> --
> Arie Reynaldi Zanahar
> reyman@xxxxxxxxxxxx
>
>
> --
> Check the headers for your unsubscription address
> For additional commands, e-mail: suse-security-help@xxxxxxxx
> Security-related bug reports go to security@xxxxxxx, not here


--
Het begint met margarine, en het eindigt met de teloorgang van
alle menselijke waarden!
-- De Volkskeuken, 28 oktober 2003



< Previous Next >