replacing text from shell script
i am trying to replace a word in a textfile using shell script.
My old batch script calling "sed" works perfectly on Windows.
However, it does not work when I put the sed code in my new shell script running on Redat.
Here is what I had in my batch script. (%1 = first argument)
sed -n "/joe/%1/" oldfile.txt 1> newfile.txt
Can someone suggest how to change it?
Last edited by ufmale; 12-03-2009 at 07:12 PM.
|