• 0

rename extension of multiple files linux

I recently wanted to rename all my jpg files to png files in one folder on my ubuntu device. The following command did the trick for me.

rename 's/.jpg$/.png/' *.jpg