Your best friend for file transfer.

Fetch application logoFetch
Fetch Icon Fetch Help > Using Fetch > Converting line endings when uploading with SFTP

Unlike FTP servers, most SFTP servers do not support automatic translation of line endings in text files when uploading, so normally Fetch leaves line endings unchanged when you upload text files using SFTP (that is, the line endings remain the same as they were in the file on the Macintosh, regardless of whether that is appropriate for the server the files are uploaded to).

If you want to force line endings to be converted to a certain style when uploading text files to an SFTP server, you can use a "secret preference" to tell Fetch which kind of line ending to use. To do this:

  1. Quit Fetch.
  2. Open the Terminal application (in the Utilities folder of the Applications folder).
  3. Type (or copy from here, and paste) the following line:
    defaults write com.fetchsoftworks.Fetch SFTPUploadTextEOLStyle -int x
  4. Replace the "x" at the end with one of the following numbers, depending on what you'd like:
    0: Leave line endings unchanged (the default)
    1: Change line endings to CR (a single carriage return, common on Mac OS 9 and older)
    2: Change line endings to LF (a single linefeed, common on Mac OS X and UNIX)
    3: Change line endings to CRLF (a carriage return followed by a linefeed, common on Windows and DOS)
  5. Open Fetch again.

This setting does not affect the conversion of line endings when uploading with FTP; normally that is handled automatically by the server.

This setting does not affect the conversion of line endings when downloading with SFTP or FTP; you can change that by using the Text file line endings pop-up menu in the Download Preferences pane.