GNU Info

Info Node: (sh-utils.info)basename invocation

(sh-utils.info)basename invocation


Next: dirname invocation Up: File name manipulation
Enter node , (file) or (file)node

`basename': Strip directory and suffix from a file name
=======================================================

   `basename' removes any leading directory components from NAME.
Synopsis:

     basename NAME [SUFFIX]

   If SUFFIX is specified and is identical to the end of NAME, it is
removed from NAME as well.  `basename' prints the result on standard
output.

   The only options are `--help' and `--version'.  Note: Common
options.


automatically generated by info2www version 1.2.2.9