How can you append to the end of a line by SED controlled by makefile?
I run
paste -d" " t.tex tE.tex | sed 's@$@XXX@' > tM.tex
where the problem is in the use of the mark $
for the end of the line.
I get
#paste -d" " t.tex tE.tex | sed -e s/" "/\\\&/g | sed -r "s/XXX/" > tM.tex
sed: -e expression #1, char 10: unterminated `s' command
make: *** [all] Error 1
I have the command just after the "all:" tag in my makefile which contains only the two lines.
The parameters -n
and -e
do not help here.
The command works as expected run when it is run directly in terminal.