xtod(1)


xtod -- change file format from UNIX to MS-DOS

Synopsis

xtod [ filename ] > [ output.file ]

Description

The xtod command converts a file from UNIX format to MS-DOS format. The MS-DOS files terminate a line of text with a carriage return and a linefeed, while UNIX files terminate a line with a linefeed only. Also MS-DOS places a <Ctrl>z at the end of a file, while UNIX does not. Some programs and utilities are sensitive to this difference and some are not. If a text or data file is not being interpreted correctly, use the dtox and xtod conversion utilities. The xtod command adds the extra carriage return to the end of each line and adds the <Ctrl>z to the end of the file. This utility is not required for converting binary object files.

If no filename is specified on the command line, xtod takes input from standard input. Output of the utility goes to standard output.

References

dtox(1)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004