March 2012
Beginner to intermediate
230 pages
7h 27m
English
basename — stdin stdout - file -- opt --help --version
basenamepath[suffix]
The basename command prints
the final component in a file path:
$ basename /users/smith/finances/money.txt money.txt
If you provide an optional suffix, it gets stripped from the result:
$ basename /users/smith/finances/money.txt .txt money
Read now
Unlock full access