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 David MacKenzie.
30

REPORTING BUGS

32       Report basename bugs to bug-coreutils@gnu.org
33       GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
34       General help using GNU software: <http://www.gnu.org/gethelp/>
35       Report   basename   translation   bugs    to    <http://translationpro
36       ject.org/team/>
37
39       Copyright  ©  2010  Free Software Foundation, Inc.  License GPLv3+: GNU
40       GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
41       This is free software: you are free  to  change  and  redistribute  it.
42       There is NO WARRANTY, to the extent permitted by law.
43

SEE ALSO

45       dirname(1), readlink(1)
46
47       The  full documentation for basename is maintained as a Texinfo manual.
48       If the info and basename programs are properly installed at your  site,
49       the command
50
51              info coreutils 'basename invocation'
52
53       should give you access to the complete manual.
54
55
56
57GNU coreutils 8.4                  June 2018                       BASENAME(1)
Impressum