Tag: fast

Rename Jpgs in a Directory with a Prefix and Sequential Numbers

$ cd pictureDirectory $ find -name ‘*.jpg’ | gawk ‘BEGIN{ a=1 }{ printf “mv %s MY_FILE_PREFIX_%02d.jpg\n”, $0, a++ }’ | bash Adapted from Pero’s post at Stackoverflow.

Tagged with: , , , , , , ,
Top