Created
October 14, 2016 07:28
-
-
Save MJafarMashhadi/19a8df846547ac42f8caa830336973ed to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/sh | |
md5sum * 2>/dev/null | cut -c 2-3 | uniq | xargs mkdir | |
for f in *; do | |
if [ -f $f ]; then | |
mv "$f" $(md5sum "$f" | cut -c 2-3) | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment