Manual pages › General commands (1)
basename(1)
strip directory and suffix from filenames
Package: coreutil, added for amigaux.
This package comes with the extra set; without it, basename is the original one: see basename-original(1).
Also by this name: basename(1B), BSD versions of commands · basename(3G), General-purpose library
NAME
basename - strip directory and suffix from filenames
SYNOPSIS
basename NAME [SUFFIX]
basename OPTION
DESCRIPTION
Print NAME with any leading directory components removed. If specified, also remove a trailing SUFFIX.
AUTHOR
Written by FIXME unknown.
REPORTING BUGS
Report bugs to <bug-coreutils@gnu.org>.
COPYRIGHT
Copyright © 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
SEE ALSO
The full documentation for basename is maintained as a Texinfo manual. If the info and basename programs are properly installed at your site, the command
- info coreutils basename
should give you access to the complete manual.
| March 2004 | basename 5.2.1 |