[Casper] How's your sed-fu?

Miles Leacy miles.leacy at themacadmin.com
Fri Oct 31 09:03:28 PDT 2008


I have a configuration file for an application that contains two lines of
text:

SERVER = server.domain.ext
CLIENT_NAME = client.domain.ext

I'd like to be able to change these lines with a simple script. I think sed
can get me there, but I'm having a little trouble getting it just right.

I've figured out how to replace "server.domain.ext" with "somethingelse" if
I know what the server.domain.ext string is. I don't want to rely on knowing
what the existing string is. What I want to do is replace everything after
"SERVER = " with a string of my choosing.

Any of the fine minds on these boards have and idea?

Thanks in advance,
Miles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20081031/32c9d3b1/attachment.html 


More information about the Casper mailing list