Linux: Deleting a newline if it is the last character in a file

1153075 pts.
Tags:
Linux
We currently have several files that we're trying to delete the last newline if it's the last character in the file. "OD-C" is showing us that our command does write the file with a trailing new line, like this:
0013600   n   t  >  n
So we've tried several things but nothing is working. Does anyone know how to do this? Thank you.
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: