[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [suse-security] Grep uncomment lines from .conf



Hi !

> 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 
>
--> Another idea to remove these kind of comments, even if they do not 
start in the beginning of the line:

sed -e 's/#.*//g'|grep -v '^$' 

HTH,
Armin


PS: By the way, why do you send all your messages 3-6 times to this 
list ?

-- 
Am Hasenberg 26         office: Institut für Atmosphärenphysik
D-18209 Bad Doberan             Schloss-Straße 6
Tel. ++49-(0)38203/42137        D-18225 Kühlungsborn / GERMANY
Email: schoech@xxxxxxxxxxxx     Tel. +49-(0)38293-68-102
WWW: http://armins.cjb.net/     Fax. +49-(0)38293-68-50

--
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