Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有很多文件夹名为“XXXXX”,只是重命名为“OOOO”,脚本怎么写?
find如果您的文件夹是带有附加命令的嵌套使用命令remane,如下所示:
find
remane
find /path/to/your/folder -depth -iname XXXX -execdir rename s/XXXX/OOOO/ {} \;
否则,只需使用rename:
rename
rename s/XXXX/OOOO/