replace trailing new line character

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

replace trailing new line character

Mark Lybarger
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-
Loading...