DOS2UX(1)
Series 300 Only
NAME
dos2ux, ux2dos − convert ASCII file format
SYNOPSIS
dos2ux file ...
ux2dos file ...
DESCRIPTION
Dos2ux and ux2dos read each file in sequence and write it on standard output, converting to DOS format or to HP-UX format. File can be either DOS format or HP-UX format for either command. Thus:
dos2ux file
prints the file on the terminal screen, while:
ux2dos file1 file2 >file3
converts file1 and file2, to DOS format, then concatenates them together, placing them in file3.
If no input file is given or if the argument − is encountered, dos2ux and ux2dos read from standard input, enabling you to combine standard input with other files.
RETURN VALUE
Both commands return 0 if successful, 2 if the command failed. The only possible failure is the inability to open a specified file, in which case a warning is printed.
WARNING
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, take care when using shell special characters.
Hewlett-Packard Company — May 11, 2021