×

basename

Computer program
basename is a standard computer program on Unix and Unix-like operating systems. When basename is given a pathname, it will delete any prefix up to the last slash character and return the result. basename is described in the Single UNIX... Wikipedia
Function: Print NAME with any leading directory components removed. If specified, also remove a trailing SUFFIX.
Example: basename -s .h include/stdio.h
Operating system: Unix, Unix-like, Plan 9, Inferno