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.