1
I'm trying to run the command from What if 75:
cat wordlist.txt | perl -pe 's/^(.*)$/\L$& \U$&/g' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' '2223334445556667777888999' | grep -P "(.)\1\1\1\1\1"
I replaced wordlist.txt
with /usr/share/dict/words
because I'm on OS X.
When I run the command, all I get is grep
's usage message. If I run the command with the grep portion removed, it seems to be doing what should.
How can I edit the command to make it work correctly?
EDIT: I replaced grep -P
with egrep
and it worked fine.