bbaasseennaammee -- Command

Strip path information from a file name
bbaasseennaammee _f_i_l_e [ _s_u_f_f_i_x ]

bbaasseennaammee strips  its argument _f_i_l_e  of any leading  directory prefixes.  If
the result contains the optional _s_u_f_f_i_x, bbaasseennaammee also strips it.  bbaasseennaammee
prints the result on the standard output.

For example, the command

    basename /usr/fred/source.c

returns

    source.c

bbaasseennaammee is  most useful when  it is used  with other shell  commands.  For
example, the command

    for i in *.c
    do
        cp $i `basename $i .c`.backup
    done

copies every  file that has  the suffix .cc  into an identically  named file
that has the suffix .bbaacckkuupp.

_S_e_e _A_l_s_o
ccoommmmaannddss, kksshh, sshh
