Installation guide

The && separator specifies that the command in braces ({})is
executed only if the test is true.
5 The mv command moves the /tmp/conv
$$
file to the location of the
original input file. In effect, this command writes the converted shell
script over the input file.
The shell script in Example 3–1 modifies only the first line in its input. You
cannot use it to replace any sh5 invocation commands that appear on lines
other than the first line of a shell script. You must either modify those
invocation commands by hand or modify this shell script so that it replaces
all sh5 invocation commands.
To use the shell script in Example 3–1, use the vi editor or some other
editor to create a file on your DIGITAL UNIX system that contains the
script. Then, use the chmod command to set the file permissions on the
script so that you can execute it. For example, if you name the script
convert, enter the following chmod command:
% chmod u+x convert
Invoke the shell script by typing its name, followed by the names of sh5
scripts you want to convert. You can name as many shell scripts as you
want on the command line, up to the maximum command-line length.
For example, suppose you want to convert three shell scripts: setup,
modify, and remove. To convert the three shell scripts, enter the following
command:
% convert setup modify remove
The convert script reads each file, one at a time, and changes its first line,
if necessary. The converted shell script is stored in the same file as the
input shell script; in this case, the converted shell scripts are named
setup, modify, and remove.
Be sure to test the converted shell scripts for other possible
incompatibilities before placing them into daily use.
3–8 Migrating Your ULTRIX User Environment to a DIGITAL UNIX System