#rename #file-rename

app renparkn

rename file with parent directory name and keep numbering in current file name

2 releases

0.1.1 May 21, 2023
0.1.0 May 7, 2023

#31 in #file-rename

21 downloads per month

GPL-3.0 license

7KB
91 lines

renparkn

Recursively rename files in provided directory by adding the parent directory name while keeping the numbering (first number in file name is kept by default).

Usage

renparkn [OPTIONS] <DIR_PATH>

Arguments

<DIR_PATH>  Path to directory with files to be renamed

Options

-a, --num-after <STRING>  Extract numbering after provided string (case sensitive)
-n, --dry-run             Show rename proposal but do not apply
-h, --help                Print help
-V, --version             Print version

Dependencies

~1.2–8MB
~68K SLoC