How to use sed to change file contents
Posted on 2009-05-18
New to sed... I have the following statement that when entered on the command line works properly to make the desired replacement. This version sends the result to stdout. I can also redirect to a new file by appending ">newfile". But I want to change the original file and when I redirect to the same file name I get an empty file. What am I missing? How do I change the original file?