Computer Science
DIRNAME(1) DIRNAME(1)
NAME
dirname - strip non-directory suffix from file name
SYNOPSIS
dirname filename
dirname {--help,--version}
DESCRIPTION
This manual page documents the GNU version of dirname.
dirname prints all but the final slash-delimited component
of filename. If filename is a single component, dirname
prints `.' (meaning the current directory).
OPTIONS
--help Print a usage message on standard output and exit
successfully.
--version
Print version information on standard output then
exit successfully.
FSF GNU Shell Utilities 1
Back to the index