OSDN Git Service

coreutils: Update to coreutils 8.22
[linuxjm/coreutils.git] / original / man1 / basename.1
1 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.43.3.
2 .TH BASENAME "1" "May 2014" "GNU coreutils 8.22" "User Commands"
3 .SH NAME
4 basename \- strip directory and suffix from filenames
5 .SH SYNOPSIS
6 .B basename
7 \fINAME \fR[\fISUFFIX\fR]
8 .br
9 .B basename
10 \fIOPTION\fR... \fINAME\fR...
11 .SH DESCRIPTION
12 .\" Add any additional description here
13 .PP
14 Print NAME with any leading directory components removed.
15 If specified, also remove a trailing SUFFIX.
16 .PP
17 Mandatory arguments to long options are mandatory for short options too.
18 .TP
19 \fB\-a\fR, \fB\-\-multiple\fR
20 support multiple arguments and treat each as a NAME
21 .TP
22 \fB\-s\fR, \fB\-\-suffix\fR=\fISUFFIX\fR
23 remove a trailing SUFFIX
24 .TP
25 \fB\-z\fR, \fB\-\-zero\fR
26 separate output with NUL rather than newline
27 .TP
28 \fB\-\-help\fR
29 display this help and exit
30 .TP
31 \fB\-\-version\fR
32 output version information and exit
33 .SH EXAMPLES
34 .TP
35 basename /usr/bin/sort
36 \-> "sort"
37 .TP
38 basename include/stdio.h .h
39 \-> "stdio"
40 .TP
41 basename \-s .h include/stdio.h
42 \-> "stdio"
43 .TP
44 basename \-a any/str1 any/str2
45 \-> "str1" followed by "str2"
46 .PP
47 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
48 Report basename translation bugs to <http://translationproject.org/team/>
49 .SH AUTHOR
50 Written by David MacKenzie.
51 .SH COPYRIGHT
52 Copyright \(co 2013 Free Software Foundation, Inc.
53 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
54 .br
55 This is free software: you are free to change and redistribute it.
56 There is NO WARRANTY, to the extent permitted by law.
57 .SH "SEE ALSO"
58 dirname(1), readlink(1)
59 .PP
60 The full documentation for
61 .B basename
62 is maintained as a Texinfo manual.  If the
63 .B info
64 and
65 .B basename
66 programs are properly installed at your site, the command
67 .IP
68 .B info coreutils \(aqbasename invocation\(aq
69 .PP
70 should give you access to the complete manual.