BASENAME(1)                      User Commands
BASENAME(1)



NNAAMMEE
       basename - strip directory and suffix from filenames

SSYYNNOOPPSSIISS
       bbaasseennaammee _N_A_M_E
       [_S_U_F_F_I_X] bbaasseen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  any leading directory components
       removed.  If speci‐ fied, also remove a trailing
       SUFFIX.

       ----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
       basename /usr/bin/sort
              Output "sort".

       basename include/stdio.h .h
              Output "stdio".

AAUUTTHHOORR
       Written by FIXME unknown.

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
       dirname(1), readlink(1)

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

              iinnffoo bbaasseennaammee

       should give you access to the complete manual.



basename 6.7                     December 2006
BASENAME(1)
