(coreutils.info)basename invocation
18.1 `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.
An exit status of zero indicates success, and a nonzero value
indicates failure.
automatically generated by info2www.cgi version 1.2.2.9