I would like to use sed to replace in files placeholders written like this $$placeholder$$ with the content of a variable.
Is it even possible ?
This is what I tried:
sed -i "" -e 's/\$\$placeholder\$\$/$o/g' test.txt
Half working, replace $$placeholder$$ by $o instead of the content of the $o variable
sed -i "" -e "s/\$\$placeholder\$\$/$o/g" test.txt
Not matching any of the $$placeholder$$ in my text
Thanks by advance.
Cyril
You can use: