I am trying to store the start of a sed command inside a variable like this:
sedcmd=\"sed -i \'\' \"
Later I then execute a command like so:
Define a shell function:
mysed () { sed -i "" "$@" }
and call it like this:
$ mysed s/$orig_pkg/$package_name/g $f