rust-basename(1)

rust-basename1

Print name with any leading directory components removed if specified, also remove a trailing suffix

Usage

basename [{-a | --multiple}] [{-s | --suffix}] [{-z | --zero}] [{-h | --help}] [{-V | --version}] [name]

Overview

Print NAME with any leading directory components removed If specified, also remove a trailing SUFFIX

Options

-a, --multiple

support multiple arguments and treat each as a NAME

-s, --suffix=SUFFIX

remove a trailing SUFFIX; implies -a

-z, --zero

end each output line with NUL, not newline

-h, --help

Print help

-V, --version

Print version

Version

v0.0.30

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

-V since Debian 13 (Trixie); -h since Debian 13 (Trixie).

From rust-coreutils 0.0.30-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.