Thread: unix sed
View Single Post
Old 04-03-2005, 05:32 AM  
Zester
Confirmed User
 
Zester's Avatar
 
Industry Role:
Join Date: Jul 2003
Posts: 5,344
Quote:
Originally Posted by SMG
isnt that the same as what you typed?
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
ok that works
but isn't there a way to do it with the temporarly file?
__________________
* Mainstream ? $65 per sale
* new male contraception
Zester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote