Created
April 11, 2013 12:34
-
-
Save ehedaya/5363037 to your computer and use it in GitHub Desktop.
Prepend filenames with hash to randomize order
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
# change mask for different filetypes | |
for f in *.batch; | |
do | |
m=`shasum ${f} | awk '{print substr($1,0,6)}'` | |
echo "${f} -> ${m}_${f}" | |
mv $f ${m}_${f} | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment