Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #~/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`"
Add Comment
Please, Sign In to add comment