As the folder to rename the files ending in _right?

I will give an example so it will be clearer.
top_case_right.png => top_case_new_right.png
there is a common feature of the files _right.png
June 10th 19 at 14:32
1 answer
June 10th 19 at 14:34
Solution
rename-v 's/(\w+)_right\.png/$1_new_right\.png/' *_right\.png


you can try in the beginning with the flag-n
No action: print names of files to be renamed, but don't rename.

Thank you, it works. - percival_Langosh commented on June 10th 19 at 14:37

Find more questions by tags Linux