06-03-2012, 03:28 PM
|
|
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
|
|
|