Created
September 15, 2010 21:23
-
-
Save bollwyvl/581515 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/bash | |
# usage: | |
# ./hash_finder.sh <hash_file> <location> | |
# Finds all files in a given location whose hashes appear in an a given file | |
find "$2" -type f -print0 | xargs -0 sha1sum | grep -e "`sed 's/^/^/' $1`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment