'\" .\" @(#)ud.1m 1.2 01 Oct 1998 SMI .\" Copyright (c) 1999, Sun Microsystems, Inc. .\" All Rights Reserved .\" Copyright (c) AT&T 1997. All rights reserved. .\" @(#)ud.rof 1.1 12/16/96 .TH ud 1m "30 Sep 1997" .SH NAME ud - converts text files between DOS, UNIX and Macintosh file formats. .SH SYNOPSIS .ft4 .nf ud [-d ] [-u ] [-m ] [ -z] file .SH DESCRIPTION The ud command is useful if a file created in one operating system environment is to be used on a different operating system. This command is used primarily to convert files from DOS to UNIX format and vice-versa. Text files created on DOS usually have a carriage return and newline characters at the end of the line, and may have control-Z character as the end of file character, while UNIX text files do not. .SH OPTIONS .SS -d Converts the file to DOS format. .SS -u Converts the file to UNIX format. .SS -m Converts the file to Macintosh format. .SS -z Ignores or does not emit the control-Z character at the end of the file. .SH EXAMPLES To convert the DOS file foobar.txt to UNIX format, without preserving the DOS file, type the following command: .sp .5 ud -d foobar.txt .sp .5 To convert the DOS file foobar.txt to UNIX format, and to preserve the DOS file, type the following command: .sp .5 ud -u foobar.txt > foobar .sp .5 where foobar is the name of the file in UNIX format.