saving a file after SED
when i run the sed , it replaces the text but it doesnot save that edited file, how can i replace the existing file with the edited file using sed
|
You should redirect the output to a temp file and then ovewrite original file with the temp one:
Code:
sed '/blah/blah' file > tempfile |
Use sed's -i flag. Be careful, there's no way back.
Yves. |
Quote:
|
All times are GMT -5. The time now is 07:51 PM. |