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

NAME

6       basename - strip directory and suffix from filenames
7

SYNOPSIS

9       basename NAME [SUFFIX]
10       basename OPTION
11

DESCRIPTION

13       Print  NAME  with  any leading directory components removed.  If speci‐
14       fied, also remove a trailing SUFFIX.
15
16       --help display this help and exit
17
18       --version
19              output version information and exit
20

EXAMPLES

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

AUTHOR

29       Written by FIXME unknown.
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       dirname(1), readlink(1)
43
44       The  full documentation for basename is maintained as a Texinfo manual.
45       If the info and basename programs are properly installed at your  site,
46       the command
47
48              info basename
49
50       should give you access to the complete manual.
51
52
53
54GNU coreutils 6.9                 March 2008                       BASENAME(1)
Impressum