rename all of the JPG images in this folder to sequence numbers.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|# rename all of the JPG images in this folder to sequence numbers.|
|for i in *.jpg; do|
|new=$(printf "%05d.jpg" "$a") #04 pad to length of 5 digits|
|mv -- "$i" "$new"|