IBM Support

How to add CRLF to a file that only has LF as record delimiter.

Question & Answer


Question

How to add CRLF to a file that only has LF as record delimiter.

Cause

Unix files only have LF.

When they are zipped, ftp will not translate the delimiter to CRLF.

Answer

Options:

         
  • Unzip the file and send it ASCII.
  •      
  • Use UNIX utilities like sed to add CRLF before zipping up the file.
  •      
  • Write a C program to write a CRLF as the delimiter before zipping the file up.

[{"Product":{"code":"SSFVK3","label":"IBM Sterling Connect:Enterprise for UNIX"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

PRI21243

Product Synonym

[<p><b>]Fact[</b><p>];[<p>]CONNECT:Enterprise Unix;All Releases[</p>]

Document Information

Modified date:
17 December 2019

UID

swg21543747