dirname
: Strip non-directory suffix from a file name
dirname
prints all but the final slash-delimited component of
a string (presumably a filename). Synopsis:
dirname name
If name is a single component, dirname
prints `.'
(meaning the current directory).
The only options are `--help' and `--version'. See section Common options.
Go to the first, previous, next, last section, table of contents.