I've been given someone else's shell script (bash) to go through and one of the lines is as follows:
sed -i "s@_RUNDIR_@$RUNDIRECTORY/runSettings.txt@" start.m
Of course, $RUNDIRECTORY is specified in the file, but RUNDIR isnt specified anywhere. runSettings.txt is a file I have access to and I think the goal here is to replace certain parts of a path with $RUNDIRECTORY. From a quick search on the syntax of sed -i, I'm very confused what the s and @ do in the string.
Can someone help me out with a very basic example?