I run this script in the bash environment GNU bash, version 3.00.15(1)-release (x86_64-redhat-linux-gnu) and sed GNU sed version 4.1.2, which has this line
this does the desired replace in the command line but not when run in a script.
what possibly could be the reason.?
Code:
sed -i 's/$pattern/$desired/g' $file
what possibly could be the reason.?
Comment