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

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

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

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

(with a nod to Tim Maher)


Fred Morris
fredm3047@xxxxxxxx (I-ACK)

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