View Single Post
Old 06-03-2012, 03:28 PM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
sed in ssh.
delete the old file then rename the new file to the old file's name.
back up the old until you are sure of the process.
Code:
cd /home/path
## ex:/old/new/
sed 's/11111/2222/g' t.htm
11111
sed 's/11111/2222/g' t.htm > tt.htm

Last edited by Barry-xlovecam; 06-03-2012 at 03:32 PM..
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote