1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3.
2 .TH DIRNAME "1" "January 2016" "GNU coreutils 8.25" "User Commands"
4 dirname \- strip last component from file name
7 [\fI\,OPTION\/\fR] \fI\,NAME\/\fR...
9 .\" Add any additional description here
11 Output each NAME with its last non\-slash component and trailing slashes
12 removed; if NAME contains no /'s, output '.' (meaning the current directory).
14 \fB\-z\fR, \fB\-\-zero\fR
15 end each output line with NUL, not newline
18 display this help and exit
21 output version information and exit
27 dirname dir1/str dir2/str
28 \-> "dir1" followed by "dir2"
33 Written by David MacKenzie and Jim Meyering.
35 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
37 Report dirname translation bugs to <http://translationproject.org/team/>
39 Copyright \(co 2016 Free Software Foundation, Inc.
40 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
42 This is free software: you are free to change and redistribute it.
43 There is NO WARRANTY, to the extent permitted by law.
45 basename(1), readlink(1)
48 Full documentation at: <http://www.gnu.org/software/coreutils/dirname>
50 or available locally via: info \(aq(coreutils) dirname invocation\(aq