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.
我想重命名当前命名为的文件夹中的文件,A - f1文件夹名称A - f2 在哪里A。我想在批处理文件或 shell 脚本中执行此操作。
A - f1
A - f2
A
DR=A cd $DR for FILE in * do mv "$FILE" "${FILE#$DR - }" done