OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: [suse-security] Grep uncomment lines from .conf

From: Kenneth Schneider (suseseclistrtsx.com)
Date: Thu Feb 12 2004 - 10:02:07 CST


On Wed, 2004-02-11 at 22:04, Arie Reynaldi Zanahar wrote:

Can we please get this guy unsubscribed.

> 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
> reymanreynaldi.com
--
Ken Schneider
unix user since 1989
linux user since 1994
SuSE user since 1998 (5.2)

--
Check the headers for your unsubscription address
For additional commands, e-mail: suse-security-helpsuse.com
Security-related bug reports go to securitysuse.de, not here