cvteol: Converting end of line characters in a file

Converting end of line characters (cvteol)

SYNTAX

cvteol [-fmr] [-e eolchars ] filename [ filename]

Convert the end of line characters in a file or files. Each filename can be a file or a directory.

-f

Force conversion on non-text files. A text file is one that contains only printable ASCII characters and the TAB, RETURN, NEWLINE and RS (record separator) codes. A file that contains any other control code or character code > 127 (typically accented characters) is assumed to be binary.

-e eolchars

Specifies the character(s) each end of line is to be set to. The default is the host system standard.

eolchars must be one of the following:

cr

Set end of line to carriage return.

lf

Set end of line to line feed (UNIX).

crlf

Set end of line to carriage return + line feed (MSDOS).

lfcr

Set end of line to line feed + carriage return.

rs

Set end of line to record separator (QNX).

-m

Don’t preserve the file modification time.

-r

Process directories recursively.


EXAMPLE

cvteol -r -e crlf sourcefiles