一个小的示例包
re-name的Python项目详细描述
示例包
这是一个可以批量更新文件名的工具
![#1589F0](https://warehouse-camo.cmh1.psfhosted.org/fe93fb0c6854c7a5101b456b3684a682669677e7/68747470733a2f2f706c616365686f6c642e69742f31352f3135383946302f3030303030303f746578743d2b)
re_name [old patten] [new patten]
可选参数
-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
-s --suffix Will append suffix. # stands for the sequence for file list
重新命名-f'-\d'“
hello1-1.txt ----> hello1.txt
重新命名-f 55 ll-s“”
he55o1.txt ----> hello1-1.txt
he55o2.txt ----> hello2-2.txt
he55o3.txt ----> hello3-3.txt
重新命名-f“55”“ll”--prenum
he55o1.txt ----> 001_hello1-1.txt
姓-f“55”“ll”--婚前5
he55o1.txt ----> 00001_hello1-1.txt
-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
-s --suffix Will append suffix. # stands for the sequence for file list
hello1-1.txt ----> hello1.txt
he55o1.txt ----> hello1-1.txt
he55o2.txt ----> hello2-2.txt
he55o3.txt ----> hello3-3.txt
he55o1.txt ----> 001_hello1-1.txt
he55o1.txt ----> 00001_hello1-1.txt