strip_ext: Strip file extensions.

Description Usage Arguments See Also

Description

Strips the extension (or an arbitrary tag) from a file name.

Usage

1
strip_ext(file, sep = "\\.", level = 0)

Arguments

file

The file name(s).

sep

Specifies the seperator character (default ".").

level

How many extensions should be stripped. The default (0) strips all, 1 strips the last one, 2 strips the last two, and so on.

See Also

Other string-utils: blanks, dup, pad, replace_ext, split_path, strsplitN, trim, wrap


gschofl/gsmisc documentation built on May 17, 2019, 8:52 a.m.