I have a set of sed replacements in a bash script and am getting an error about an unterminated `s' command. Here's what the sed line looks like:
sed -n -e "s/TMPFOO1/$FOO1/" -e "s/TMPFOO2/$FOO2/" -e "s/TMPFOO3/$FOO3/" -e "s/TMPFOO4/$FOO4/" -e "s/TMPFOO5/$FOO5/" /home/foo/template > /home/foo/template/finishedresult
For some reason though, bash doesn't like this and I get an error about
sed: -e expression #4, char 69: unterminated `s' command
What am I missing here? How can I have SED input the variable? It looks to me like they are all terminated.