Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Franklin needs to add .jpg to a bunch of extensionless files.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 frankies_jpegz_1
Octocat-spinner-32 frankies_jpegz_2
Octocat-spinner-32 frankies_jpegz_3
Octocat-spinner-32 README.md
Octocat-spinner-32 rename_frankies_filez.sh
README.md

Step 1

Back up your files, in case this goes horribly wrong.

Step 2

Move the top level directory to your Desktop. Once finished, your folder structure should look like this:

++ Desktop

    ++++ Top_Level_Folder

        ++++++ Sub_Folder_1
            ++++++++ Loan_Pic_1
            ++++++++ Loan_Pic_2
            ++++++++ Loan_Pic_3

        ++++++ Sub_Folder_2
            ++++++++ Loan_Pic_1
            ++++++++ Loan_Pic_2
            ++++++++ Loan_Pic_3

        ++++++ Sub_Folder_3
            ++++++++ Loan_Pic_1
            ++++++++ Loan_Pic_2
            ++++++++ Loan_Pic_3

        .
        .
        .

        ++++++ Sub_Folder_100
            ++++++++ Loan_Pic_1
            ++++++++ Loan_Pic_2
            ++++++++ Loan_Pic_3

Step 3

Move the file named rename_frankies_filez.sh into the top level directory.

++ Desktop

    ++++ Top_Level_Folder             <-- Move 'rename_frankies_filez.sh' into this directory.

        ++++++ Sub_Folder_1
            ++++++++ Loan_Pic_1
            ++++++++ Loan_Pic_2
            ++++++++ Loan_Pic_3

        ++++++ Sub_Folder_2
            ++++++++ Loan_Pic_1
            ++++++++ Loan_Pic_2
            ++++++++ Loan_Pic_3

        ++++++ Sub_Folder_3
            ++++++++ Loan_Pic_1
            ++++++++ Loan_Pic_2
            ++++++++ Loan_Pic_3

        .
        .
        .

        ++++++ Sub_Folder_100
            ++++++++ Loan_Pic_1
            ++++++++ Loan_Pic_2
            ++++++++ Loan_Pic_3

Step 3

Open a Terminal window (Finder -> Go -> Utilities -> Terminal).

Step 4

Navigate to the top level directory in the Terminal window (Note: replace 'Top_Level_Folder' with whatever your top-level directory is called).

cd Desktop/Top_Level_Folder

Make sure that you've correctly navigated to the directory. When you execute the pwd command, your output should be similar to /Users/drtangible/Desktop/frankie_needs_some_jpegz.

Step 5

Run the command in the Terminal window.

./rename_frankies_filez.sh

Step 6

That's it! Your folder structure should now look like this:

++ Desktop

    ++++ Top_Level_Folder

        ++++++ Sub_Folder_1
            ++++++++ Loan_Pic_1.jpg
            ++++++++ Loan_Pic_2.jpg
            ++++++++ Loan_Pic_3.jpg

        ++++++ Sub_Folder_2
            ++++++++ Loan_Pic_1.jpg
            ++++++++ Loan_Pic_2.jpg
            ++++++++ Loan_Pic_3.jpg

        ++++++ Sub_Folder_3
            ++++++++ Loan_Pic_1.jpg
            ++++++++ Loan_Pic_2.jpg
            ++++++++ Loan_Pic_3.jpg

        .
        .
        .

        ++++++ Sub_Folder_100
            ++++++++ Loan_Pic_1.jpg
            ++++++++ Loan_Pic_2.jpg
            ++++++++ Loan_Pic_3.jpg
Something went wrong with that request. Please try again.