DIRNAME — User Commands
NAME
dirname − display directory portion of a pathname
SYNOPSIS
dirname string
DESCRIPTION
dirname delivers all but the last level of the path name in string.
The following example will set the shell variable NAME to /usr/src/cmd:
NAME=‘dirname /usr/src/cmd/cat.c‘
SEE ALSO
Sprite version 1.0 — April 29, 1985