我有一棵文件夹树。其中一些包含名为“.file.php”的文件我如何将树中具有此名称的所有文件递归重命名为“.file1.php”?我在 debian 服务器上。
完整的解决方案如下所示
find -name '*.file.php' -exec rename 's/\.file\.php$/.file1.php/' {} \;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6149 次 |
| 最近记录: |