Usage: basename FILE [SUFFIX]
Strip directory path and suffixes from FILE. If specified, also removes any trailing SUFFIX.
Example:
$ basename /usr/local/bin/foo foo $ basename /usr/local/bin/ bin $ basename /foo/bar.txt .txt bar