dirname(1)dirname(1)Namedirname - deliver directory names from pathname
Syntaxdirname 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 Alsobasename(1), sh(1), sh5(1), ksh(1)dirname(1)