You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mark Lybarger <ml...@gmail.com> on 2017/06/08 21:54:57 UTC

[users@httpd] replace trailing new line character

Hello!

I need to do some content filtering on my output.  Currently, I've got
mod_sed to remove some xml nodes that I don't want going out.  via:

OutputSed "/<nodeToRemove/d"

The final step is that the last line in the content contains a newline
character \n, but I need to remove that.

How can I easily remove the trailing new line character at the end of the
file?

Thanks!
-mark-