DIRNAME(1)                       User Commands
DIRNAME(1)



NNAAMMEE
       dirname - strip non-directory suffix from file name

SSYYNNOOPPSSIISS
       ddiirrnnaammee _N_A_M_E ddiirrnnaammee
       _O_P_T_I_O_N

DDEESSCCRRIIPPTTIIOONN
       Print  NAME  with  its trailing /component removed;
       if NAME contains no /'s, output `.' (meaning the
       current directory).

       ----hheellpp display this help and exit

       ----vveerrssiioonn
              output version information and exit

EEXXAAMMPPLLEESS
       dirname /usr/bin/sort
              Output "/usr/bin".

       dirname stdio.h
              Output ".".

AAUUTTHHOORR
       Written by David MacKenzie and Jim Meyering.

RREEPPOORRTTIINNGG BBUUGGSS
       Report bugs to <bug-coreutils@gnu.org>.

CCOOPPYYRRIIGGHHTT
       Copyright © 2006 Free Software Foundation, Inc.
       This is free software.  You may redistribute
       copies  of  it  under  the terms       of
       the      GNU      General      Public      License
       <http://www.gnu.org/licenses/gpl.html>.  There is NO
       WARRANTY,  to  the extent permitted by law.

SSEEEE AALLSSOO
       basename(1), readlink(1)

       The  full  documentation for ddiirrnnaammee is
       maintained as a Texinfo manual.  If the iinnffoo and
       ddiirrnnaammee programs are properly installed
       at  your  site, the command

              iinnffoo ddiirrnnaammee

       should give you access to the complete manual.



dirname 6.7                      December 2006
DIRNAME(1)
