Tag Archives: Bash

Rename file extension quickly

How do I quickly rename the file extensions? If you’re on Linux console, just run the following command inside the directory in which you have the files. for i in *.JPG; do mv $i `basename $i .JPG`.jpg; done; Yes, above command will rename all the files with extension “JPG” to “jpg” techfiz:~/Desktop/New$ ls -al total [...]