|
|
HP-UX Reference > Ddos2ux(1)HP-UX 11i Version 2: December 2007 Update |
|
NAMEdos2ux, ux2dos — convert ASCII file format DESCRIPTIONdos2ux 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 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 the argument - is encountered, dos2ux and ux2dos read from standard input. Standard input can be combined with other files. EXAMPLESPrint 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 VALUEdos2ux and ux2dos return 0 if successful or 2 if the command failed. The only possible failure is the inability to open a specified file, in which case the commands print a warning. |
|