Jenny_Hopkins@toby-churchill.com <Jenny_Hopkins@toby-churchill.com> wrote:
Can anyone give me a hint as to why "sed s/word1/word2/g filename" displays the file 'filename' with word2 in place of word1 but the change isn't made permanent?
By permanent, you mean that filename isn't changed? sed doesn't replace its input files. sed just reads an input stream and puts out an output stream by default. Maybe you can use > to direct the output to a new file and use mv to replace the original, after checking for nasties. -- MJR| Make it easy for your readers to find their way around your web ---' site with good navigation links. The two most common places are the side-bar menu and the top-of-screen menu. Where is yours? |-----[ Luminas internet applications http://www.luminas.co.uk/ ]-----|