stupid cfenginequestion

Steffen Grunewald steffen.grunewald at aei.mpg.de
Mon Mar 7 11:04:14 CET 2005


Hi,

I'm trying to configure cfengine to do a bit more than before, and now
I need to replace a string within a line.
I can skip forward to the line containing old_string by
	LocateLineMatching "old_string"
and could do 
	CommentNLines "1"
	Append "line containing new_string"
but I don't want to rely on the contents of the line, except "old_string".
Unfortunately, I'm still fighting my weekly Friday blindness, and cannot
find a "Replace" command which would only modify the current line...
Any ideas?

Cheers,
 Steffen

-- 
Steffen Grunewald * * * Merlin cluster admin (http://pandora.aei.mpg.de)
Albert-Einstein-Institut (MPI Gravitationsphysik, http://www.aei.mpg.de)
       Science Park Golm, Am Mühlenberg 1, 14476 Potsdam, Germany
e-mail: steffen.grunewald(*)aei.mpg.de * +49-331-567-{fon:7233,fax:7298}



More information about the linux-fai mailing list