textto

Convert text files to QNX 2, QNX 4, UNIX, or DOS format (QNX Neutrino)

Syntax:

textto [-c|l|r] [-qz] file...

Runs on:

QNX Neutrino, Microsoft Windows

Options:

-c
Convert the specified files to DOS format (CR/LF).
-l
(“el”) Convert the specified files to QNX 4 and UNIX format (LF). By default, if none of the options are specified, -l is assumed.
-q
Be quiet; don't write the names of files being processed.
-r
Convert the specified files to QNX 2 format (RS).
-z
Strip all ^Z codes from the file.
file
The name of the file to be converted. You can use wildcards in the name.

Description:

The textto utility lets you convert text files to QNX 2, QNX 4/UNIX, or DOS format. You can use the -z option to strip ^Z codes from DOS-based files. Some DOS programs use this character as an end-of-file indicator.

Examples:

Change all QNX 2 record separators in prog.c to QNX 4 line feeds:

textto -l prog.c

Change all QNX 4 line feeds in all of the .h files in the current directory to QNX 2 record separators:

textto -r *.h

Change all QNX 4 line feeds in all of the .txt files in the current directory to DOS CR/LFs:

textto -c *.txt

See also:

tr