可用来批量重命名文件。
语法:
rename from to file...
rename -V
选项:
-V:显示版本信息并退出
实例:
将当前目录下所有已.log结尾的文件修改为.txt结尾;
rename from to file...
rename -V
-V:显示版本信息并退出
将当前目录下所有已.log结尾的文件修改为.txt结尾;
转载于:https://www.cnblogs.com/Stong/p/6837889.html