help-cfengine
[Top][All Lists]
Advanced

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

editfiles question


From: ANDERSON RUSSELL D (ANDY)
Subject: editfiles question
Date: Wed, 19 Jan 2005 08:54:51 -0700

I can not seem to get the wildcard to work in editfiles as documented in the 
tutorial. The example fails with this error like it needs to resolve to a 
single file name:

cf:cfengine::/tmp/editfiles.conf:16: Multiple filenames in editfiles

I would like to use it to edit strings in files such as file_1 file_2 
file_3......

Thanks - Andy

Tutorial: -------------------------------------------

Recursive file sweeps/directory traversals:

        As part of an editfiles action, while recursively checking whether to 
edit the files in a tree of files.

editfiles:
  { /tmp/testdir
  Include .*
  Exclude bla.*
  Ignore "."
  Ignore ".."
  Recurse 6
  ReplaceAll "search" With "replace"
  }





reply via email to

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