basename - strip directory names from path
$ basename <path> [suffix]
basename
prints basename (filename, stripped of preceding directory names) of specified path
to standard output. The path does not have to exist.
path
: The path which we want to get basename ofsuffix
: Suffix to strip from name$ basename /
/
$ basename ~
anon
$ basename Source/js/array.js
array.js