![]() |
unix sed
what is wrong with this command:
sed -e 's/dog/cat/g' 1.html I want to replace "dog" for "cat everywhere in the 1.html file I get an output of the desired result to the screen and not to the file |
Quote:
than change it to this: sed -e 's/cat/dog/g' 1.html |
Quote:
I usually do sed -e 's/cat/dog/g' 1.html > 1.html.tmp && cp -f 1.html.tmp > 1.html && rm -f 1.html.tmp |
Quote:
but isn't there a way to do it with the temporarly file? |
bump 8 chars
|
|
All times are GMT -7. The time now is 03:01 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123