help-cfengine
[Top][All Lists]
Advanced

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

How to use regex in editfiles?


From: Josef Wolf
Subject: How to use regex in editfiles?
Date: Sat, 28 Aug 2004 11:29:48 +0200
User-agent: Mutt/1.4.1i

Hello!

I try to use regular expressions to edit files.  I put the following in
the editfiles section:

  { /etc/services
    SetLine "cfengine 5308/tcp"
    AppendIfNoLineMatching "cfengine[:blank:]+5308/tcp"
  }

But the regexp does not match so that the line is added every time cfagent
is run.

Any idea what I'm doing wrong here?

-- 
Please visit and sign and http://www.ffii.org
-- Josef Wolf -- jw@raven.inka.de --




reply via email to

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