gringomike
Technical User
Hi all,
I'm trying to use sed to permenantly change a recurring entry in a script to something else. All I need to do is change "text1" to "file2" everytime "text1" appears.
From the command line I am doing the following;
# sed 's/text1/file2/g' /path/to/script/scriptname
The script then echo's to the terminal with the changes I have made.
When I "more" the script however the changes have not taken effect.
I know I must be doing something wrong but I don't know what!
Help!
GM
I'm trying to use sed to permenantly change a recurring entry in a script to something else. All I need to do is change "text1" to "file2" everytime "text1" appears.
From the command line I am doing the following;
# sed 's/text1/file2/g' /path/to/script/scriptname
The script then echo's to the terminal with the changes I have made.
When I "more" the script however the changes have not taken effect.
I know I must be doing something wrong but I don't know what!
Help!
GM