I have abc.sh:
exec $ROOT/Subsystem/xyz.sh
On a Unix box, if I print echo $HOME then I get /HOME/COM/FILE>
Say:
sed "s|\$ROOT|${HOME}|" abc.sh
Note:
sed would expand variables./ since the replacement contains /$ in the pattern since you don't want to escape it.EDIT: In order to replace all occurrences of $ROOT, say
sed "s|\$ROOT|${HOME}|g" abc.sh