basename (target)
Return the non-directory portion of pathname (POSIX, toybox)
Syntax:
basename [-a] [-s suffix] name... | name [suffix]
Runs on:
QNX OS
Options:
- -a
- Treat all arguments as names.
- -s suffix
- Remove suffix (implies -a).
- name
- The name of the non-directory portion of a pathname.
Description:
The basename utility prints the non-directory portion of a pathname to the standard output, removing the suffix.
This utility is provided as part of the toybox package. For information on how to enable it, see toybox.
Contributing author:
Rob Landley and the toybox project (see https://landley.net/toybox/).
Page updated: