Skip to content

Instantly share code, notes, and snippets.

@themasch
Created April 24, 2013 17:17
Show Gist options
  • Select an option

  • Save themasch/5453833 to your computer and use it in GitHub Desktop.

Select an option

Save themasch/5453833 to your computer and use it in GitHub Desktop.
recurse md5
#!/bin/sh
walk_dir() {
if [[ -e MD5SUM ]]
then
md5sum -c MD5SUM
else
for FILE in `ls .`;
do
if [[ -d $FILE ]]
then
cd $FILE
walk_dir;
cd ../
fi
done;
fi;
}
walk_dir;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment