使用匹配任何整数的模式重命名文件(fedora)

时间:2018-06-12 10:24:51

标签: rename

Rename multiple files by replacing a particular pattern in the filenames using a shell script中,解释了如何使用fedora中的rename基于非常简单的模式重命名文件(所以不是Perl脚本,另请参阅https://unix.stackexchange.com/questions/178280/how-to-rename-thousands-of-files-efficiently)。是否可以使用匹配所有数字的模式重命名文件。

我可以使用string_i_other_string string_other_string_i重新命名i,其中string_1_other_string是一个数字(例如string_38_other_stringrename等)吗?

似乎\ d或[0-9]之类的内容与其他with open('destinationfilepath','wb') as file_object: client.file('boxfileId').download_to(file_object) file_object.close() 中的内容不同。

P.S。:我认为安装Perl版本不是一个选项(没有管理员权限)。

0 个答案:

没有答案