1DIRNAME(1)                       User Commands                      DIRNAME(1)
2
3
4

NAME

6       dirname - strip non-directory suffix from file name
7

SYNOPSIS

9       dirname NAME
10       dirname OPTION
11

DESCRIPTION

13       Print  NAME  with  its trailing /component removed; if NAME contains no
14       /'s, output `.' (meaning the current directory).
15
16       --help display this help and exit
17
18       --version
19              output version information and exit
20

EXAMPLES

22       dirname /usr/bin/sort
23              Output "/usr/bin".
24
25       dirname stdio.h
26              Output ".".
27

AUTHOR

29       Written by David MacKenzie and Jim Meyering.
30

REPORTING BUGS

32       Report bugs to <bug-coreutils@gnu.org>.
33
35       Copyright © 2007 Free Software Foundation, Inc.
36       This is free software.  You may redistribute copies  of  it  under  the
37       terms       of       the      GNU      General      Public      License
38       <http://www.gnu.org/licenses/gpl.html>.  There is NO WARRANTY,  to  the
39       extent permitted by law.
40

SEE ALSO

42       basename(1), readlink(1)
43
44       The  full  documentation for dirname is maintained as a Texinfo manual.
45       If the info and dirname programs are properly installed at  your  site,
46       the command
47
48              info dirname
49
50       should give you access to the complete manual.
51
52
53
54GNU coreutils 6.9                 March 2008                        DIRNAME(1)
Impressum