Skip to content

Instantly share code, notes, and snippets.

@fabioam
Last active August 30, 2016 01:42
Embed
What would you like to do?
Localiza todas as imagens, e move para o diretório raiz incluindo um prefixo
find . -name '*.jpg' \
> | awk 'BEGIN{ a=0 }{ printf "mv \"%s\" %04d.jpg\n", $0, a++ }' \
> | bash
# fonte: http://stackoverflow.com/questions/3211595/renaming-files-in-a-folder-to-sequential-numbers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment