replace trailing new line character

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux