Wednesday, February 6, 2013

Change extension to lowercase from terminal

When I recently copied some photos to my pc I noticed that the extension was uppercase (JPG).
A simple way to fix this is
rename -n 's/.JPG$/.jpg/' *.JPG
This works if the files are all in the same folder.

1 comment:

  1. This comment has been removed by a blog administrator.


Note: Only a member of this blog may post a comment.