help-cfengine
[Top][All Lists]
Advanced

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

Newbie Question regarding commenting out all the lines without hash mark


From: Durham, Josh
Subject: Newbie Question regarding commenting out all the lines without hash marks
Date: Tue, 25 Jun 2002 20:47:50 -0400

I'm very new to cfengine, but I am trying to basically comment every single 
line out in a file, with the following:

editfiles:
  { /etc/inetd.conf
   HashCommentLinesMatching "^[^#]"
  }

But this doesn't seem to do anything.  Running an egrep "^[^#]" /etc/inetd.conf 
seems to work.  I'm using the latest cfengine, 2.0.3.

Any ideas how to do this right?

- Josh



reply via email to

[Prev in Thread] Current Thread [Next in Thread]