September 2009
Beginner
942 pages
85h 34m
English
basename
basenamename[suffix] basenameoption
Remove leading directory components from a path. If suffix is given, remove that also. The result is printed to standard output. This is useful mostly in a script when you need to work with a filename but can’t predict its full path in every instance.
Print help message and then exit.
Print the version number and then exit.
$basename /usr/lib/libm.alibm.a $basename /usr/lib/libm.a .alibm