d

dos2ux(1)

dos2ux(1)

NAME

dos2ux, ux2dos - convert ASCII ®le format

SYNOPSIS

dos2ux ®le...

ux2dos ®le...

DESCRIPTION

dos2ux and ux2dos read each speci®ed ®le in sequence and write it to standard output, converting to HP-UXformat or to DOS format, respectively. Each ®le can be either DOS format or HP-UXformat for either command.

A DOS ®le name is recognized by the presence of an embedded colon (:) delimiter; see dosif(4) for DOS ®le naming conventions.

If no input ®le is given or if the argument - is encountered, dos2ux and ux2dos read from standard input. Standard input can be combined with other ®les.

EXAMPLES

Print ®le myfile on the display:

dos2ux myfile

Convert file1 and file2 to DOS format then concatenate them together, placing them in file3. ux2dos file1 file2 > file3

RETURN VALUE

dos2ux and ux2dos return 0 if successful or 2 if the command failed. The only possible failure is the inability to open a speci®ed ®le, in which case the commands print a warning.

WARNINGS

Command formats resembling:

dos2ux file1 file2 > file1

overwrite the data in file1 before the concatenation begins, causing a loss of the contents of file1. Therefore, be careful when using shell special characters.

SEE ALSO

doschmod(1), doscp(1), dosdf(1), dosls(1), dosmkdir(1), dosrm(1), dosif(4).

Section 1186

− 1 −

HP-UX Release 11i: December 2000