User's Guide for MS-DOS Clients

305
Connecting to a LAN Manager for UNIX Systems Server
Converting Text Files
Converting Text Files
This section describes how to convert text files from one operating system
format to the other with the ud command, and how to pipe and redirect
reformatted files. The UNIX system executable version of the ud command
is stored in the /usr/bin directory, and the MS-DOS executable version is
stored in the DOSUTIL shared directory on a LAN Manager for UNIX
Systems server. In the UNIX system version, the command name and its
parameters must be entered as all lowercase characters. In the MS-DOS
version, the command name and parameters may be entered as either
uppercase or lowercase characters.
Using the Ud Command
CAUTION: This command is intended only for text files. Do not use this command on executable
or nontext data files.
The ud command converts a text file from one format to another format.
To convert a text file
1 Link to the shared directory containing the ud command (usually
\\server1.serve\\DOSUTIL).
2 At the MS-DOS prompt, type:
ud [
option
]
filename1
>
filename2
Replace option with one of the four options discussed in the next section, or
leave it blank to convert MS-DOS to UNIX and vice versa. Replace filename1
with the name of the original file. Replace filename2 with the name for the new,
converted file. The filenames must be different from each other.
For example, to convert a UNIX system file named UNIXTEXT to a file in
MS-DOS format named SYSTEXT, type:
ud unixtext > systext
The ud command rewrites the file UNIXTEXT in MS-DOS format and puts
it in a file named SYSTEXT. The original UNIXTEXT file remains
unchanged.