Scripting on an AIX box with Korn shell, I need to be able to truncate just the trailing cr/lf pair on the very last record of a multi-hundred record file. I've looked and don't even see the characters but file recipient (it's ftp-d from me to him) insists that the blank line is causing problems with their pickup/processing routine.
Assuming there is a cr/lf there (all of the other records have one) how do I remove just the one on the last record?
Tnx.
Tom
"My mind is like a steel whatchamacallit ...
Assuming there is a cr/lf there (all of the other records have one) how do I remove just the one on the last record?
Tnx.
Tom
"My mind is like a steel whatchamacallit ...