Spectralcat's Blog

August 27, 2009

Renaming Files in Bulk

Filed under: Uncategorized — spectralcat @ 4:52 am

So I have a stupid camera that names all of the pictures on it with an extension that is all capital letters (i.e. .JPG). Unfortunately, Word Press looks for pictures that end in .jpg (lower-case) and since GNU/Linux is case-sensitive, Word Press cannot see the photos downloaded from the camera unless I rename the photos. Here’s an easy way to change the name of all of the photos in a directory at once.

1) Open the Terminal and change to the directory containing the photos you want to rename (cd name-of-directory-with-photos)

2) Enter this command:

rename -v ‘s/\.JPG$/\.jpg/’ *.JPG



Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: