Created
February 7, 2020 19:49
-
-
Save pavgup/30ba4b025126345cf7572e2835e5a329 to your computer and use it in GitHub Desktop.
move files to a hash of their contents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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