Skip to content
Advertisement

renaming file using shell script

I have tons of image inside a folder and it also has different file types. I have tried googling for an answer but I can’t seem to find one. I wanted the files to be named 1.jpg, 2.png, 3.gif. . . n.JPEG. Could someone help me out with this?

Advertisement

Answer

Try the command below:

JavaScript

Make note that the command above is a bash script.

Advertisement