Guest User

Untitled

a guest
Jun 14th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #~/bin/bash
  2. # usage:
  3. # ./hash_finder.sh <hash_file> <location>
  4. # Finds all files in a given location whose hashes appear in an a given file
  5. find "$2" -type f -print0 | xargs -0 sha1sum | grep -e "`sed 's/^/^/' $1`"
Add Comment
Please, Sign In to add comment