Print NAME with any leading directory components removed
If specified, also remove a trailing SUFFIX
Usage: basename [-z] NAME [SUFFIX]
basename OPTION... NAME...
Options:
-a, --multiple support multiple arguments and treat each as a NAME
-s, --suffix <SUFFIX> remove a trailing SUFFIX; implies -a
-z, --zero end each output line with NUL, not newline
-h, --help Print help
-V, --version Print version
Options (5)
| Option | Description | Source |
|---|
-a, --multiple | support multiple arguments and treat each as a NAME | help + man |
-s, --suffix SUFFIX | remove a trailing SUFFIX; | help + man |
-z, --zero | end each output line with NUL, not newline | help + man |
-h, --help | Print help | help + man |
-V, --version | Print version | help + man |
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.