sed question
Hi all,
I am facing a problem with sed. I want to replace a constant string with an environment variable $BASEDIR.
I tried
sed -e "s/this/$BASEDIR/g" temp.txt
sed -e 's/this/'"$BASEDIR"'/g' temp.txt
but it gives me an error
sed: -e expression #1, char 13: Unknown option to `s
for both the cases.
Any help would be appreciated.
Thanks.
|