I want to replace a text in a file eg (old_text) with another text eg (new_text) . new_text is a variable in my shell script. few methods that i tried ..
but this doesnt work
cat $line".sh" sed -e 's/abc/ABC/g' $line".sh"
sed 's/ordprg/new_string/g' $line".sh" > $line".sh"
Could some one can help me on this?