12 Feb
2004
12 Feb
'04
08:12
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@iap-kborn.de Tel. +49-(0)38293-68-102 WWW: http://armins.cjb.net/ Fax. +49-(0)38293-68-50