I want to do in place modification in README.md file, but also allow variable substitution. The line that I want to modify starts with "[![Data Layer]...".
I have tried:
sed -i "" "s|\[!\[Data Layer\].*|[](file:///...)|g" README.md
With double quotes I'm getting error:
event not found: \[Data
I fixed it by changing to single quotes, but then it changes the line with ${number} as string and doesn't replace this variable by its value.
What should I do to make my variable substitution work?