In order to rename a whole folders file extensions from jpeg to jpg I wrote this script called rename.sh in bash.
for filename in *.jpeg
cleaned=`basename \$filename .jpeg`;
mv \$filename \$cleaned.jpg;
Then I made is executable from the command line.
chmod +x rename.sh
Then ran it in the directory I needed to rename files in.