GNU Info

Info Node: ( invocation

( 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.

     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

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

automatically generated by info2www version