Topic "How to auto-convert text file carriag returns WinXP-to-Linux"

Author Message
pstein
[View user's profile]

Joined: 2006-10-18
Posts: 21
I dragged a text file (shell script) created under WinXP from WinExplorer onto WinSCP and uploaded it to a Linux system.

Because Linux system treat Carriage Returns different
from the handling under Win systems a conversion is necessary.

How can I tell WinSCP to automatically convert
these eol bytes in the text file to the necessary Linux bytes when transferring?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please read documentation.
_________________
Martin Prikryl
pstein
[View user's profile]

Joined: 2006-10-18
Posts: 21
So if I understand all corrently it depends on the extension of the file. If I up-/download a file
with one of the listed extensions then an auto-conversion took place.

But what if I upload a file with NO extension?

How can I specify: transfer all files with NO extension as ASCII with auto-conversion ?

Furthermore I miss (espcially for the no-extension files) a feature which peeks into the real content of the files.
If this is more likely a text file then the file should be transferred as ASCII otherwise as BIN.

Is there a content-inspection+decision option or
only simple extension-only decision-making ?

Peter
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
pstein wrote:
How can I specify: transfer all files with NO extension as ASCII with auto-conversion ?

"*."
Please read documentation.

Quote:
Is there a content-inspection+decision option?

No.
_________________
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