Skip to content

Instantly share code, notes, and snippets.

@MaciekBaron
Created August 22, 2013 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaciekBaron/6306136 to your computer and use it in GitHub Desktop.
Save MaciekBaron/6306136 to your computer and use it in GitHub Desktop.
Bath renaming and numbering files in Unix (OSX flavour)
find . -name '*.jpg' | awk 'BEGIN{ a=0 }{ printf "mv %s tile%02d.jpg\n", $0, a++ }' | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment