in reply to Removing all non 8 letter words from the dict/words file

run from the shell...
grep '^........$' /usr/share/dict/words

Replies are listed 'Best First'.
Re^2: Removing all none 8 letter words from the dict/words file
by QM (Parson) on Apr 09, 2006 at 14:05 UTC
    egrep is faster.

    Oh, wait, you've probably got grep aliased to egrep just like I do!

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of

      actually, on my linux box, grep is GNU grep, and egrep is a shell wrapper for grep:
      #!/bin/sh exec grep -E ${1+"$@"}
        So you don't have to worry about the metacharacter differences between grep and egrep. I can't remember what the differences are exactly, but for some reason I recall that grep was slightly less cumbersome on the jobs I did most often.

        On the other hand, you have to wonder if GNU grep is the same as the grep that came before, and suffers from the same slowdowns. Probably not ;)

        -QM
        --
        Quantum Mechanics: The dreams stuff is made of