Created
January 18, 2016 14:41
-
-
Save gedsic/371becbf903c5ba188b3 to your computer and use it in GitHub Desktop.
List words that can be spelled with hexadecimal digits
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 | |
| cat /usr/share/dict/american-english | grep --ignore-case "^[ABCDEFGILOSZ]*$" | sed 's/[gG]/6/g;s/[iI]/1/g;s/[lL]/1/g;s/[oO]/0/g;s/[sS]/5/g;s/[zZ]/2/g' | tr [:lower:] [:upper:] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
6ED51C