On Tue, Aug 25, 2015 at 10:28 AM, Ploppz <3rlen...@gmail.com> wrote: > 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?
Uh, why are you using echo and $(shell) there instead of just ~/scripts/make/getshadernames src | sed 's/\(.*\)/\textern char const * const \1;/g' >> src/shaders.h ? Philip Guenther _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make