You'll need to use the regular expression term for a space, at the very least. This works for me... sed 's/config.version[[:space:]]=[[:space:]]"6"/cfg.ver = "7"/g' /home/app/update.cfg
A good guide to such things is the Sed FAQ, floating ubiquitousely around the net :)
Last edited by mjrich; 10-25-2004 at 08:03 PM.
|