1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3.
2 .TH BASENAME "1" "January 2016" "GNU coreutils 8.25" "User Commands"
4 basename \- strip directory and suffix from filenames
7 \fI\,NAME \/\fR[\fI\,SUFFIX\/\fR]
10 \fI\,OPTION\/\fR... \fI\,NAME\/\fR...
12 .\" Add any additional description here
14 Print NAME with any leading directory components removed.
15 If specified, also remove a trailing SUFFIX.
17 Mandatory arguments to long options are mandatory for short options too.
19 \fB\-a\fR, \fB\-\-multiple\fR
20 support multiple arguments and treat each as a NAME
22 \fB\-s\fR, \fB\-\-suffix\fR=\fI\,SUFFIX\/\fR
23 remove a trailing SUFFIX; implies \fB\-a\fR
25 \fB\-z\fR, \fB\-\-zero\fR
26 end each output line with NUL, not newline
29 display this help and exit
32 output version information and exit
35 basename /usr/bin/sort
38 basename include/stdio.h .h
41 basename \-s .h include/stdio.h
44 basename \-a any/str1 any/str2
45 \-> "str1" followed by "str2"
47 Written by David MacKenzie.
49 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
51 Report basename translation bugs to <http://translationproject.org/team/>
53 Copyright \(co 2016 Free Software Foundation, Inc.
54 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
56 This is free software: you are free to change and redistribute it.
57 There is NO WARRANTY, to the extent permitted by law.
59 dirname(1), readlink(1)
62 Full documentation at: <http://www.gnu.org/software/coreutils/basename>
64 or available locally via: info \(aq(coreutils) basename invocation\(aq