@## 标题rename file name
mkdir u
touch 1 2 3 4 5
we get 5 files
then i wanna 1 2 3 4 5 become 1.jpg 2.jpg…
use command rename
rename ‘s/$/.jpg/’ *
do
now i wanna change .jpg to .png
use command:
rename ‘s/.jpg/.png’ *
or del .jpg
use this command
rename ‘s/.png//’ *