Skip to content

Instantly share code, notes, and snippets.

Last active August 30, 2016 01:42
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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment