Thread: sed and hex
View Single Post
  #5   (View Single Post)  
Old 10th July 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 320
Default

another problem
when I change some words in txt file with Sed I open it and see words changed
but when I change another words and open file again I see new change but last change is not save

for example I run this commnad
Code:
sed 's/torrent/rtGUIHOT/' rtgui.access.log > rtgui.access1.log
I see this

Code:
192.168.0.42 - rtGUIHOT [05/Jul/2008:10:17:48 +0430] "GET / HTTP/1.1" 200 7444
192.168.0.42 - rtGUIHOT [05/Jul/2008:10:17:48 +0430] "GET /submodal/subModal.css HTTP/1.1" 304 -
192.168.0.42- rtGUIHOT [05/Jul/2008:10:17:49 +0430] "GET /submodal/common.js HTTP/1.1" 304 -
192.168.0.42- rtGUIHOT [05/Jul/2008:10:17:49 +0430] "GET /submodal/subModal.js HTTP/1.1" 304 -
192.168.0.42- rtGUIHOT [05/Jul/2008:10:17:49 +0430] "GET /style.css HTTP/1.1" 304 -
192.168.0.42- rtGUIHOT [05/Jul/2008:10:17:49 +0430] "GET /images/downarrow.gif HTTP/1.1" 304 -
80
and I run this command again

Code:
 sed 's/2008/20300/' rtgui.access.log > rtgui.access1.log                                                                  12:10
I see this

Code:
192.168.0.42 - torrent [05/Jul/20300:09:53:21 +0430] "GET /?setview=complete HTTP/1.0" 200 7443
192.168.0.42 - torrent [05/Jul/20300:09:53:23 +0430] "GET /submodal/subModal.css HTTP/1.0" 304 -
192.168.0.42 - torrent [05/Jul/20300:09:53:23 +0430] "GET /submodal/common.js HTTP/1.0" 304 -
192.168.0.42 - torrent [05/Jul/20300:09:53:23 +0430] "GET /submodal/subModal.js HTTP/1.0" 304 -
192.168.0.42- torrent [05/Jul/20300:09:53:24 +0430] "GET /style.css HTTP/1.0" 304 -
192.168.0.42- torrent [05/Jul/20300:09:53:24 +0430] "GET /images/downarrow.gif HTTP/1.0" 304 -

before I change rtorrent to rtGUI
and now change 2008 to 20300
but rtorrent is not rtGUI
Reply With Quote