Mailinglist Archive: opensuse-security (457 mails)

< Previous Next >
Re: [suse-security] Grep uncomment lines from .conf
  • From: kris carlier <kris@xxxxxxxxx>
  • Date: Thu, 12 Feb 2004 10:08:28 +0100 (CET)
  • Message-id: <Pine.LNX.4.44.0402121007570.8916-100000@xxxxxxxxxxxxxxxxxx>
Hi Arie,

> 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

send it through |grep -v ^$ ?

kr=


< Previous Next >