httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lybarger <mlybar...@gmail.com>
Subject [users@httpd] replace trailing new line character
Date Thu, 08 Jun 2017 21:54:57 GMT
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-

Mime
View raw message