Skip to Content
gnux

-s, --suffix

Remove a trailing SUFFIX; implies -a.

An option of basenamex.

Usage

basenamex -s SUFFIX NAME [SUFFIX]
basenamex --suffix=SUFFIX NAME [SUFFIX]

Details

ShortLongValueDefaultMeaning
-s--suffixSUFFIXremove a trailing SUFFIX; implies -a

Examples

Remove a multi-part extension

basenamex --suffix=.tar.gz release/gnux-1.0.tar.gz

Strip a suffix from several names at once

basenamex -s .go cmd/main.go core/core.go

Strip an extension from every match of a glob

basenamex -s .jpg photos/*.jpg

Help in the terminal

gnux help basenamex --suffix

On this page