Bash modifies the file names in the specified folder through MAC terminal (batch modification)

The original address: http://blog.sina.com.cn/s/blog_9d25acc60102w6n1.html
Take the PNG file for example
1. Open the terminal
cd to the specified folder
3> The input

for i in *.png;do mv "$i" "${i%.png}@2x.png" ;done

You can do what you want

Read More: