13

Unexpected Behaviour from grepping Text File

view full story
linux-howto

http://www.unix.com – Hi! I recently downloaded a wordlist file called 2of12.txt, which is a wordlist of common words, part of the 12dicts package. I've been getting unexpected results from grepping it, such as getting no matches when clearly there ought to be, or returns that are simply wrong. Par exemple: Code: egrep ^...a.....n.$ /usr/share/dict/2of12.txt |head -5 apparition bipartisan cavalryman defamation dilatation Clearly I'm asking for an eleven-letter word, and getting ten-letter words, (but at least the letters I'm asking for are in the right places). If I grep any other wordlist, I get (HowTos)