Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A command line crossword solving assistant' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A command line crossword solving assistant
Authored by: staiger on Mar 04, '08 02:14:46PM
The tip looks good if you want to verify a word you've already thought of. If you're looking to your computer for hints, given a few letters, you could try a regular expression:
cat /usr/share/dict/words | perl -e 'while(){ print if( /^a.m.e.s$/i ); }'
aimless
almners
armless
armlets
This script will only print lines that match the pattern 'a m e s', as in the word starts with an 'a', ends with an 's', and you have an 'm' and an 'e' in the middle. The other three leters, you don't know.
cat /usr/share/dict/words | perl -e 'while(){ print if( /^..ple$/i ); }'
ample
Apple
apple
diple
duple
maple
Niple
n-ple
saple
Siple
tiple
tuple


[ Reply to This | # ]
A command line crossword solving assistant
Authored by: staiger on Mar 04, '08 02:16:52PM

Oops.

That should be:

cat /usr/share/dict/words | perl -e 'while(<>){ print if( /^.pp.e$/i ); }'

The filter swallowed my '<>'.



[ Reply to This | # ]