10-17-2007
353,
5
Join Date: Jun 2007
Last Activity: 22 November 2017, 3:56 AM EST
Posts: 353
Thanks Given: 56
Thanked 5 Times in 5 Posts
Actually I tried several times connecting Linux pc through ftp from DOS command prompt but could not succeed. It only happens when "sftp.exe" is used (I guess it is a secure ftp file). But I found the solution for my problem. A file has to be created (with some data) in the Linux environment and the windows file which is ftp'd should be concatenated to this file. So now we are able to see the "^M" control characters of the file in vi, as we have mixup of Linux based and DOS based newline characters in the same file and now it is possible to delete these DOS characters. But if the file contains data carriage return'd only by DOS newline character (ASCII-13), the vi editor is not showing those character and consider this file as "DOS" based file, a strange behaviour and I could not apply any method to replace this character using vi or sed or even with Perl. That is why I said to create a Linux based file with some data.
N.B: while a file containing only DOS newline character, then vi's :set list (or) od command (or) strings, nothing is useful.