Vocabulary
io.pathnames

Inputs
patha pathname string


Outputs
stringa string


Word description
Outputs the last component of a pathname string.

Examples
USING: io.pathnames prettyprint ; "/usr/bin/gcc" file-name .
"gcc"

USING: io.pathnames prettyprint ; "/usr/libexec/awk/" file-name .
"awk"


See also
file-stem, file-extension

Definition