Hi All,
I need replace a substring in shell script. The value of newString will be passed in as input argument. However the following script won't take the value of newString. Any suggestion?
Thanks,
Mike
newString=$1
oldSentence="This is an old way!"
echo $oldSentence | sed -e 's/old/$(newString)/g'