IBM Support

Strip off the Windows end-of-line CR/LF from a UNIX file

Question & Answer


Question

How do you strip off the Windows end-of-line CR/LF from a UNIX file?

Cause

Answer

Sterling Connect:Direct for UNIX does not have a feature to remove both the CR and LF. UNIX uses LF only to mark the end of the line. So transferring data in TEXT mode from Windows to UNIX will only remove a CR.

[{"Product":{"code":"SSKTYY","label":"IBM Sterling Connect:Direct for UNIX"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"4.2;4.1;4.0;3.8","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

PRI2093;SCI15787

Document Information

Modified date:
24 July 2020

UID

swg21549146