help-cfengine
[Top][All Lists]
Advanced

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

Re: LocateLineMatching madness


From: rader
Subject: Re: LocateLineMatching madness
Date: Thu, 06 May 2004 09:33:49 -0500

Mark: my ReplaceFirst enhancement (sent 21 March) got lost.
I suspose you want new patches against the latest nightly
tarball?

All: I think "ReplaceFirst" will do what you're after...

 ReplaceFirst "URI.*" With "URI ldap://localhost/";

If anyone is interested in a patch for it, let me know.

steve 
- - - 
systems & network guy
high energy physics
university of wisconsin

 > ---- Original Message ----
 > From: Steve Wray
 > On Thursday 06 May 2004 09:45, Tod Oace wrote:
 > > On May 5, 2004, at 05:40, Alexander Jolk wrote:
 > [snip]
 > >
 > > Seems like it would be nice if we had something like:
 > >
 > > ReplaceAllLinesMatching "URI.*" With "URI ldap://localhost/";
 > >
 > > That *seems* convergent and safe to me but maybe someone else can see
 > > a problem with it. If it doesn't work, how about:
 > >
 > > CompleteAllLinesBeginning "URI " With "ldap://localhost/";
 > 
 > Actually, I'd been thinking it would be *really* nice to have some sort 
 > of 'capture' functionality ie;
 > 
 > ReplaceRegexMatching "(URI ldap://)foo/" "\1bar/"
 > 
 > so we would go from a line
 > URI ldap://foo
 > to a line;
 > URI ldap://bar
 > 
 > Not a fantastic example, but you get the picture.
 > 
 > 
 > _______________________________________________
 > Help-cfengine mailing list
 > address@hidden
 > http://mail.gnu.org/mailman/listinfo/help-cfengine





reply via email to

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