(coreutils.info)dirname invocation


Next: pathchk invocation Prev: basename invocation Up: File name manipulation
Enter node , (file) or (file)node

18.2 `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'.  Note: Common
options.

   An exit status of zero indicates success, and a nonzero value
indicates failure.


automatically generated by info2www.cgi version 1.2.2.9