I am trying to replace a script call with a script call from a sub directory.
For example, originally I had ./output.sh
in my script to call the output.sh
script in the current directory.
I want to replace ./output.sh
with ../output.sh
so that it calls output.sh
in the parent directory.
I tried
sed -i -e 's/../\output.sh/./\output.sh/g' scriptName.sh
This returns with
char 17: unknown option to 's'
Any help with the sed escape character syntax would be great.