I realize similar questions have been asked previously, many, times. However, still getting errors. I have the string
dom0Size = ${/ 2E-6 ${position_units}}
That I want to change to
dom0Size = ${/ ${d}E-6 ${position_units}}
I have used sed
for similar tasks that are not so special character heavy. I tried
sed -i "s?dom0Size = \$\{\/ 2E-6 \$\{position_units\} \}?dom0Size = \$\{\/ 2E-6 \$\{position_units\} \}?g" "test.txt"
but even with all these escape slashes, I get the error
sed: -e expression #1, char 53: Invalid content of \{\}
Any advice?