Created
March 15, 2020 07:41
-
-
Save pnappa/de8dab1d0b2f4a951a23e1a508d0fe31 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
set -eu | |
hash1="$1" | |
for word in $(cat /usr/share/dict/words); do | |
if shasum -a 1 <(printf "%s\0%s" "$hash1" "$word") | grep '^00'; then | |
echo $word | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment