RE: [suse-security] Grep uncomment lines from .conf
egrep -v "^[ ^I]*#\|^[ ^I]*$" file.conf ^I=ctrl+V & ctrl+I with this way we make sure that there are not fuc***** spaces before de # or de eol regards, José Luis Ledesma _______________ Competitiveness Telephone: +34 669 86 55 39 Email: jledesma@competitiveness.com <mailto:jledesma@competitiveness.com> Website: http://www.competitiveness.com -----Original Message----- From: Arie Reynaldi Zanahar [mailto:reyman@reynaldi.com] Sent: jueves, 12 de febrero de 2004 4:04 To: suse-security@suse.com Subject: [suse-security] Grep uncomment lines from .conf 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@reynaldi.com -- Check the headers for your unsubscription address For additional commands, e-mail: suse-security-help@suse.com Security-related bug reports go to security@suse.de, not here
participants (1)
-
José Luis Ledesma