Example Package
This is a tool that you can update file names in batch
re_name [old patten] [new patten]
optional parameters
-f --file This will make changes on file(s), you can only review the changes without this
--ext Specify the file types you want to update, by defult it will update all files in current folder
-s --suffix Will append suffix. # stands for the sequence for file list
--prenum [n] extract the number and prefix it on name. [n] is digits, default 3
re_name -f '-\d' ""
hello1-1.txt ----> hello1.txt
re_name -f 55 ll -s "#"
he55o1.txt ----> hello1-1.txt
he55o2.txt ----> hello2-2.txt
he55o3.txt ----> hello3-3.txt
re_name -f "55" "ll" --prenum
he55o1.txt ----> 001_hello1-1.txt
re_name -f "55" "ll" --prenum 5
he55o1.txt ----> 00001_hello1-1.txt