I\'m trying to lower-case all my extensions regardless of what it is. So far, from what I\'ve seen, you have to specify what file extensions you want to convert to lower-cas
I got success with this command.
rename JPG jpg *.JPG
Where rename
is a command that tells the shell to rename every occurrence of JPG
to jpg
in the current folder with all filenames having extension JPG
.
If you see Bareword "JPG" not allowed while "strict subs" in use at (eval 1) line 1 with this approach try:
rename 's/\.JPG$/.jpg/' *.JPG