Multiple files rename

It is often necessary to rename multiple files, adding an index at the end of the name or completely change the name of the file. This is an easy task with bash, just one single line command:

count=0; for i in *.jpg; do let "count++"; mv "$i" "My Pictures - $count.jpg"; done;

Leave a Reply

Your email address will not be published. Required fields are marked *