Re: issue with transferring text files from windows to *INX using scp/sftp



Not sure whether \r is handled in all unices. IINM AIX does not detect
\r in vi or sed. In AIX we hadle it through ctrl + v and ctrl + m.

Kosala

On Feb 12, 2008 8:33 PM, Christian Grunfeld
<christian.grunfeld@xxxxxxxxx> wrote:
What I do is %s/\r//g in vi or sed to remove the trailing CRs

Cheers
Christian


2008/2/12, Russell Millard Oliver <Tick@xxxxxxxx>:

SFTP does not handle ascii files, you'll need to do it in your client.
Depending on which client you are using, there is probably a setting to
tell it to transfer ascii files and which files it should consider ascii
by extension. If you aren't moving the standard .txt files, then add
your extension to that list. I noticed that some clients, like
Filezilla, don't convert the files like it seems like they should.
WinSCP works well for that.

Good luck,
Russ

-----Original Message-----
From: Mike Li [mailto:mike__li@xxxxxxxxx]
Sent: Monday, February 11, 2008 3:13 PM
To: secureshell@xxxxxxxxxxxxxxxxx
Subject: issue with transferring text files from windows to *INX using
scp/sftp

HI:
Each line of text files transferred from windows to
*INX using scp/sftp contains Control-M characters.
It is a pain to run dos2unix utils when there are a
few hundred files.
I did not experience issue when using ftp to transfer
files from windows to *INXs systems
Is there a switch or ssh_config configuration setting
to suppress the Crontrol-M during transfer ?
Thank you
Mike



________________________________________________________________________
____________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping





--
Kosala
--------------------------------------------
Disclaimer: Views expressed in this mail are my personal views and
they would not reflect views of the employer.
--------------------------------------------
blog.kosala.net
www.linux.lk/~kosala/
www.kosala.net



Relevant Pages

  • Re: Latest Version Of The Winbdows UI Guide.
    ... > Serenity's Shortcut Keys and Key Modifiers for the Windows ShellThis has now, finally, reached what I aimed for. ... > Dbl Click a drive shortcut, Rycycle Bin, Start Menu, or My Computer Opens an folder view of the double clicked item ... > Ctrl + Close button Sets the system default settings, ...
    (microsoft.public.windowsxp.general)
  • Re: Latest Version Of The Winbdows UI Guide.
    ... > Serenity's Shortcut Keys and Key Modifiers for the Windows ShellThis has now, finally, reached what I aimed for. ... > Dbl Click a drive shortcut, Rycycle Bin, Start Menu, or My Computer Opens an folder view of the double clicked item ... > Ctrl + Close button Sets the system default settings, ...
    (microsoft.public.windowsxp.customize)
  • Re: Latest Version Of The Winbdows UI Guide.
    ... > Serenity's Shortcut Keys and Key Modifiers for the Windows ShellThis has now, finally, reached what I aimed for. ... > Dbl Click a drive shortcut, Rycycle Bin, Start Menu, or My Computer Opens an folder view of the double clicked item ... > Ctrl + Close button Sets the system default settings, ...
    (microsoft.public.windowsxp.accessibility)
  • Re: Keyboard shortcut for "Minimize All Windows"
    ... Shortcut Keys and Key Modifiers for the Windows Shell ... Shift + Delete key or Shift + Delete on the shortcut menu Deletes the ... Shift + Right Click Opens the object's context menu with hidden verbs ... Ctrl + Dbl Click an object Opens in the ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Opening URLs from e-mail pages and other locations on the computer.
    ... IE/Tools/Internet Options/Programs/Reset Web Settings. ... Windows Explorer/Tools/Folder Options/File Types. ... Set Outlook Express as default mail client - Start/Run and type in: ... until I hold down the "ctrl" key. ...
    (microsoft.public.windowsxp.general)