dirname(1) ultrix man page | unix.com

Man Page: dirname

Operating Environment: ultrix

Section: 1

dirname(1)						      General Commands Manual							dirname(1)

Name
       dirname - deliver directory names from pathname

Syntax
       dirname string

Description
       The command delivers all but the last level of the path name in string.

Examples
       The following example sets the Bourne shell variable NAME to
       NAME=`dirname /usr/src/cmd/cat.c`

See Also
       basename(1), sh(1), sh5(1), ksh(1)

																	dirname(1)
Related Man Pages
basename(1) - mojave
dirname(3) - redhat
dirname(1) - freebsd
basename(1) - opendarwin
basename(1) - freebsd
Similar Topics in the Unix Linux Community
I know this is Unix....But Does anyone know something about Linux
Setting basename and dirname variable to simply script.
[bash] Manipulate dir name
$dirname ??????
Convert Relative path to Absolute path, without changing directory to the file location.