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.
如何替换一个目录中所有文件夹名称中的字符串。例如,如果我有这些文件夹
hellojoe hellomary hellosusan
我想将这些更改为
世界乔世界玛丽世界苏珊
使用此命令有效
find . -name 'hello*' -exec bash -c 'mv "$1" "${1/hello/world}"' -- {} \;