oh btw-  if you are globbing all the dictionaries there will be multiple entries( english + british ) so if /usr/share/dict contains more than one dict file( which is standard  ), I believe your word count is wrong...
 jmz


On 4/4/06, Joshua Zeidner <jjzeidner@gmail.com> wrote:
Sorry, I patented the idea of using regular expressions for solving Technomages problem.  You owe me 4 million dollars.

 jmz


;you can't expect a linux geek to back down from a regex challenge



On 4/4/06, Jeremy C. Reed <reed@reedmedia.net> wrote:
On Tue, 4 Apr 2006, Josh Zeidner wrote:

> josh@zeidner:/usr/share/dict$ perl -n -e 'if ( $_ =~ /\A[bdfeca]+\Z/ )
> {  print "$_" }' < american-english

Be sure to be at least four characters.

> > using bdfeca:
> > construct word strings in a list using only these letters in any
> > combination 4 characters or longer. use of the number 1 as a space filler
> > is permitted.

I am not sure what the "space filler" means. I guess it means putting
multiple words together.

> > example:
> > dead1beef

Without using any "space filler" ...

$ cat /usr/share/dict/* | egrep -a '^[bdfeca]{4,}$' | sort -u | wc -l
      56

Jeremy C. Reed

echo ':6DB6=88>?;@69876tA=AC8BB5tA6487><' | tr '4-F' 'wu rofIn.lkigemca'
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change  you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss