<s>
basename	B-Application
is	O
a	O
standard	O
computer	B-Application
program	I-Application
on	O
Unix	B-Application
and	O
Unix-like	B-Operating_System
operating	I-Operating_System
systems	I-Operating_System
.	O
</s>
<s>
When	O
basename	B-Application
is	O
given	O
a	O
pathname	B-Application
,	O
it	O
will	O
delete	O
any	O
prefix	O
up	O
to	O
the	O
last	O
slash	O
('/'	O
)	O
character	O
and	O
return	O
the	O
result	O
.	O
</s>
<s>
basename	B-Application
is	O
described	O
in	O
the	O
Single	O
UNIX	B-Application
Specification	O
and	O
is	O
primarily	O
used	O
in	O
shell	B-Language
scripts	I-Language
.	O
</s>
<s>
It	O
was	O
inherited	O
into	O
the	O
first	O
version	O
of	O
POSIX	O
and	O
the	O
Single	O
Unix	B-Application
Specification	O
.	O
</s>
<s>
The	O
version	O
of	O
basename	B-Application
bundled	O
in	O
GNU	B-Application
coreutils	I-Application
was	O
written	O
by	O
David	O
MacKenzie	O
.	O
</s>
<s>
The	O
command	B-Application
is	O
available	O
as	O
a	O
separate	O
package	O
for	O
Microsoft	B-Application
Windows	I-Application
as	O
part	O
of	O
the	O
GnuWin32	B-Language
project	O
and	O
the	O
UnxUtils	B-Application
collection	O
of	O
native	B-Language
Win32	B-Library
ports	O
of	O
common	O
GNU	B-Operating_System
Unix-like	B-Operating_System
utilities	O
.	O
</s>
<s>
The	O
Single	O
UNIX	B-Application
Specification	O
specification	O
for	O
basename	B-Application
is	O
.	O
</s>
<s>
If	O
specified	O
,	O
basename	B-Application
will	O
also	O
delete	O
the	O
suffix	O
.	O
</s>
