Renaming a set of files by NicholasPhillips May 14, 2018 # rename all .jpeg files to .jpg for file in *.jpeg; do mv $file ${file%.jpeg}.jpg; done # make all the files in the current directory lowercase for file in *; do mv $file $(echo $file | tr [[:upper:]] [[:lower:]]); done Tags:bashlowercasemvrename