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.
如何使用 shell 实用程序 mv 将所有 -m.css 文件重命名为 .css?
使用 for 循环:
for file in *-m.css ; do mv "$file" "${file%-m.css}.css" ; done
使用rename可能不那么冗长。
rename