Quote:
Originally Posted by
redlotus72
I have downloaded one csv file from my AIX box and edited using Text Pad, and uploaded thru SecureFX, If I see the file using vi command I can see ^M in end of the line, if open again in text pad there are lot of new lines. How to fix this issue? where is the problem? Text pad or SecureFX?
Sadly, my AIX box does not have dos2ux <sigh> - which I have used successfully on other systems.
The problem comes up that dos/windows uses two characters to indicate end-of-line. Unix uses one. What you are seeing in UNIX is the extraneous (at least to it) character.
Try transmitting the file in TEXT mode. that should convert between the two systems.
Else, find a way to use sed to get rid of the extra character.