Skip to content

Instantly share code, notes, and snippets.

@tmiz
Created April 9, 2015 02:36
Show Gist options
  • Save tmiz/9d1b36d1e62ac5c9841f to your computer and use it in GitHub Desktop.
Save tmiz/9d1b36d1e62ac5c9841f to your computer and use it in GitHub Desktop.
Avoid file name collisions for machine learning or other use cases
for FILE in *.JPG; do mv $FILE `sha1sum $FILE | sed -e "s/ /_/g"`; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment