When I use a normal value like a=10
I am able to get the sed find/replace working
sed -e "s/xxx/$a/g" a.txt
But when I try to use a variable like a=http://xyz.com
sed -e "s/xxx/$a/g" a.txt
is not working...
Its throwing unknown option error which I assume is due to the escape characters that are present over the variable