Automatic file conversion dos 2 unix

Advertisement

leos
Guest

Automatic file conversion dos 2 unix

:?:
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

Reply with quote

Advertisement

thehitman
Joined:
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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,074
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

Reply with quote

Advertisement

You can post new topics in this forum