The dirname command is available with the System V software installation option. Refer to [a manual with the abbreviation INSTALL] for information on how to install optional software.
dirname delivers all but the last level of the path name in string.
This shell procedure invoked with the argument /usr/src/bin/cat.c compiles the named file and moves the output to cat in the current directory:
The following example will set the shell variable NAME to /usr/src/cmd:
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97