📜  mv 批量重命名扩展 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:29.484000             🧑  作者: Mango

代码示例1
for f in *.oldext; do 
    mv -- "$f" "${f%.oldext}.newext"
done