Topic "Automatic file conversion dos 2 unix"

Author Message
leos

Guest


Question
Hi,

During a copy from windows to Linux, i need to convert a lots of files in subdirectorys from dos 2 unix.
The copy is an done by script. I know that Linux have a command dos2unix, but the problem is that i have to run it on each file.

Is it possible to make this conversion with Winscp on the same script?

Thanks
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Switch to ascii transfer mode with command option transfer ascii.
_________________
Martin Prikryl
thehitman
[View user's profile]

Joined: 2007-03-07
Posts: 1
I'm having the same problem transferring to an SFTP and I tried switching the transferring mode to ASCII and it still doesn't work. I have to go in and convert it with dos2unix.
_________________
www.wantena.com - Free Internet TV
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
thehitman wrote:
I'm having the same problem transferring to an SFTP and I tried switching the transferring mode to ASCII and it still doesn't work. I have to go in and convert it with dos2unix.

Can you post a log file?
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License