Skip to content

Instantly share code, notes, and snippets.

@l4u
Created May 9, 2013 14:29
Show Gist options
  • Save l4u/5547784 to your computer and use it in GitHub Desktop.
Save l4u/5547784 to your computer and use it in GitHub Desktop.
rename sequentially
find . -name '*.png' \
| awk 'BEGIN{ a=0 }{ printf "mv %s %d.png\n", $0, a++ }' \
| bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment