|
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 (m3047
inwa.net)
Date: Wed Feb 11 2004 - 21:32:51 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
m3047
flame:~/perl> cat source.txt
# This is a comment
this is indented
# this is an indented comment
q.e.d.
m3047
flame:~/perl> perl -wn -e 'm/^\s*[^#\s]/ && print;' source.txt
this is indented
q.e.d.
m3047
flame:~/perl>
(with a nod to Tim Maher)
--
Fred Morris
fredm3047
inwa.net (I-ACK)
--
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
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]