#file-rename #directory #filename #parent #name #recursively #keeping

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

#6 in #keeping

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.3–9MB
~76K SLoC