Skip to content

Instantly share code, notes, and snippets.

@simonsickle-old
Created June 24, 2014 16:18
Show Gist options
  • Save simonsickle-old/a03fb8f76ed10cc61bf0 to your computer and use it in GitHub Desktop.
Save simonsickle-old/a03fb8f76ed10cc61bf0 to your computer and use it in GitHub Desktop.
MD5 Generator
#!/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