Skip to content

Instantly share code, notes, and snippets.

@pavgup
Created February 7, 2020 19:49
Show Gist options
  • Save pavgup/30ba4b025126345cf7572e2835e5a329 to your computer and use it in GitHub Desktop.
Save pavgup/30ba4b025126345cf7572e2835e5a329 to your computer and use it in GitHub Desktop.
move files to a hash of their contents
find . -name *.mp4 -exec md5sum '{}' ';' | while read sum file ; do cp "$file" /mnt/tmp-move/"$sum".mp4 ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment