CRLF (Carriage Return Line Feed)

PillarSoft Utilities, Copyright 2003, PillarSoft

 


Description

CRLF converts Unix type end of line characters (0x0A) to OS/2, Win, Dos based Carriage Return/Line Feed pairs (0x0D0A) and vice versa.

 

Syntax

  crlf FileName, Option

 

Parameters

Parameter
Data Type
Purpose
Value
Default
Required
FileName string Name of file to perform operation on. May be filename only or a fully qualified filename. (example: readme.txt   or   c:\apps\readme.txt) N/A N/A Y
Option string /LF - Convert CRLF pairs to LF only.

/CRLF - Convert LF to CRLF pairs.

Default is /CRLF - Convert LF to CRLF pairs.

N/A /CRLF N

 

Notes

  1. Note that parameters are comma delimited.

  2. Option = /CRLF by default.

 

Example(s)

 
Convert LF's to CRLF's in a Unix type file named "Readme." Notice that Option = /CRLF by default.

  crlf readme, /crlf
  
  -or-
  
  crlf readme

 
Convert CRLF's to LF's in an OS/2, Win, Dos type file named "Readme.tst"

  crlf readme.txt, /lf

 
Convert CRLF's to LF only in an OS/2, Win, Dos type file named "Readme.tst" that is located in the "C:\bin\apps" directory.

  crlf C:\bin\apps\readme.txt, /lf

 
Display syntax and mini command line help.

  crlf
  
  -or-
  
  crlf ?
 


Copyright 2001 - 2003, PillarSoft
All Rights Reserved