Introduction
If you've ever needed to rename multiple files which had a different file extension then this is what you needSolution
- Open the terminal.
- Change directory to the parent directory of folder1 using the
cdcommand.cd /path/to/parent/directory/of/folder1/ - Run this command to rename all files with .JPG extension to .jpg.
find . -type f -name '*.JPG' -print0 | xargs -0 rename 's/\.JPG/\.jpg/'
Leave a comment
Your email address will not be published. Comments are moderated before appearing.