basename(1) - SerenityOS man pages

#Name

basename - strip directory names from path

#Synopsis

$ basename <path> [suffix]

#Description

basename prints basename (filename, stripped of preceding directory names) of specified path to standard output. The path does not have to exist.

#Arguments

#Examples

$ basename /
/
$ basename ~
anon
$ basename Source/js/array.js
array.js