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
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
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 "
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