LocateLineMatching in editfiles

2006-06-27 Thread Luis Cerezo
Folks, i can't seem to get a match on LocateLineMatching in edit files... if the file has "foo foo foo 123456" LocateLineMatching "foo" = fails to match LocateLineMatching 'foo' = fails to match LocateLineMatching "foo*" = fails to match LocateLineMatching "/^foo*/" = fails to match LocateLineMa

Re: LocateLineMatching in editfiles

2006-06-27 Thread Luis Cerezo
nix that. forgot to "dot my regex" LocateLineMatching "foo.*" works. -luis Luis Cerezo wrote: >Folks, > >i can't seem to get a match on LocateLineMatching in edit files... > >if the file has "foo foo foo 123456" > >LocateLineMatching "foo" = fails to match >LocateLineMatching 'foo' = fails

Re: LocateLineMatching in editfiles

2006-06-27 Thread Alexander Mattausch
Luis Cerezo schrieb: > Folks, > > i can't seem to get a match on LocateLineMatching in edit files... > > if the file has "foo foo foo 123456" > > LocateLineMatching "foo" = fails to match > LocateLineMatching 'foo' = fails to match > LocateLineMatching "foo*" = fails to match > LocateLineMatching "

Multiple Comment Declarations

2006-06-27 Thread Michael Dolan
Hello, Is it possible to define multiple comment types for actions such as UnCommentLinesContaining UnCommentLinesMatching? We are using cfengine to verify/modify files that have two varying comment styles '#' and '# '. The objective, Lines Containing 'quoted-string' or 'quoted-regex' that are com