在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_string
,rename
等)吗?
似乎\ d或[0-9]之类的内容与其他with open('destinationfilepath','wb') as file_object:
client.file('boxfileId').download_to(file_object)
file_object.close()
中的内容不同。
P.S。:我认为安装Perl版本不是一个选项(没有管理员权限)。