Hi. I have this line:
        echo "$(shell ~/scripts/make/getshadernames src)" | sed 
's/\(.*\)/\textern
char const * const \1;/g' >> src/shaders.h

getshadernames prints out one name on each line. My problem is that what is
send to sed via the pipe, is only one long line - with newlines removed. How
can I fix that?

Thanks!



--
View this message in context: 
http://gnu-make.2324884.n4.nabble.com/How-to-echo-the-output-of-a-shell-command-and-preserve-the-newlines-tp16494.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.

_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to