Created
June 24, 2014 16:18
-
-
Save simonsickle-old/a03fb8f76ed10cc61bf0 to your computer and use it in GitHub Desktop.
MD5 Generator
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/bash | |
# Below place your directory you want to search. For example below shows allfolders/allfiles.zip | |
list=*/*.zip | |
# Place file extension of a seperate file that you require to occompany your other files | |
extraextension=.md5 | |
for i in $( ls $list ); do | |
if [ ! -f $i.$extraextension ]; then | |
md5sum $i > $i.$extraextension | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment