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 "/^foo*/" = fails to match
> LocateLineMatching 'foo*' = fails to match
>
> if the line is "foo"
> then
> LocateLineMatching "foo" = works...
>
> I also tried
> LocateLineMatchingRegexp (?! found a reference to this on the bb, but it
> returns as Unknown edit action )
>
> what am I missing here?
>
Your missing two ".*"
Try LocateLineMatching ".*foo.*"
LocateLineMatching "foo" is equivalent to
LocateLineMatching "^foo$"
Regards,
Alexander
--
Dr. Alexander Mattausch
[EMAIL PROTECTED]
Lehrstuhl für theoretische Festkörperphysik -- Uni Erlangen-Nürnberg
*** http://www.tfkp.physik.uni-erlangen.de ***
_______________________________________________
Help-cfengine mailing list
[email protected]
http://cfengine.org/mailman/listinfo/help-cfengine