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: Fred Morris (m3047inwa.net)
Date: Wed Feb 11 2004 - 21:32:51 CST


Is this security related? I apologize in advance.

At 10:04 AM 2/12/04, Arie Reynaldi Zanahar wrote:
>I want to grep lines that not commented from a file, Someone said that I can

m3047flame:~/perl> cat source.txt
# This is a comment

   this is indented

   # this is an indented comment

q.e.d.
m3047flame:~/perl> perl -wn -e 'm/^\s*[^#\s]/ && print;' source.txt
   this is indented
q.e.d.
m3047flame:~/perl>

(with a nod to Tim Maher)

--

Fred Morris
fredm3047inwa.net (I-ACK)

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