I need to exit \ n, so in the output I really get a new line or tab
$ perl -p -e 's/e/a/ge'
now i want each e to be replaced with \ n
$ perl -p -e 's/e/\n/ge'
but even \ n gives me an error.
it was a simplified example. In a real script (makefile) I have
substitute := perl -p -e 's/@([^@]+)@/defined $$ENV{$$1} ? $$ENV{$$1} : $$1/ge'
and in target I have such a nice team
$(substitute) $< > $@
and if the input file for perl contains \n in the output, I will see it literally ... I want to have a real new line.
Pablo source share