Replacing the end of the line by SED in makefile
Posted
by Masi
on Stack Overflow
See other posts from Stack Overflow
or by Masi
Published on 2010-04-26T13:22:46Z
Indexed on
2010/04/26
13:23 UTC
Read the original article
Hit count: 170
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.
© Stack Overflow or respective owner