Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > D

dos2ux(1)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

dos2ux, ux2dos — convert ASCII file format between HP-UX and DOS formats

SYNOPSIS

dos2ux file...

ux2dos file...

DESCRIPTION

dos2ux and ux2dos read each specified file in sequence and write it to standard output, converting to HP-UX format or to DOS format, respectively. Each file can be in either DOS format or HP-UX format for either command.

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

If no input file is given or if a file is specified as -, dos2ux and ux2dos read from standard input. Standard input can be combined with other files.

EXAMPLES

Print file 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

Successful.

2

Failure. The only possible failure is the inability to open a specified file, 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

dosif(4).

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.