As shown in the figure, I want to change 999 in the middle to 001 and html in the back to png. how should I write the command? Thank you!
rename -v 's/999/001/' ./*.html
rename -v 's/.html/.png/' ./*.html
You can add options to the parameters first
-n, only the results of renaming are displayed, but no actual operation is carried out.