[LBo] /usr/share/dict/words (section 3.3.3.4.1 General line filtering)

jisao dimark at securenet.net
Sat Nov 11 22:52:21 CET 2006


I tried to grep the word penguin in /usr/share/dict/words, as in the LBo
book example.  No success.

jisao at 1[~]$ grep penguin /usr/share/dict/words
grep: /usr/share/dict/words: No such file or directory
jisao at 1[~]$ ls -l /usr/share/dict/words
lrwxrwxrwx 1 root root 30 2006-10-29 22:27 /usr/share/dict/words ->
/etc/dictionaries-common/words
jisao at 1[~]$ grep penguin /etc/dictionaries-common/words
grep: /etc/dictionaries-common/words: No such file or directory
jisao at 1[~]$ ls -l /etc/dictionaries-common/
total 4
lrwxrwxrwx 1 root root 28 2006-10-29 22:18 default.aff ->
/usr/lib/ispell/american.aff
lrwxrwxrwx 1 root root 29 2006-10-29 22:18 default.hash ->
/usr/lib/ispell/american.hash
-rw-r--r-- 1 root root 27 2006-03-04 20:55 ispell-default
jisao at 1[~]$ locate "*dict*words"
/usr/share/dict/words


I am baffled... How can I find the words file in the dictionaries
installed on my computers?
 
A locate request brought me 206 lines of matches.  I did not know I had
so many dictionaries on my computer.
jisao at 1[~]$ locate *dict*

So I figured I would try grepping the whole computer for penguin
instead.  After all, this is a pretty rare word.  As searching the whole
computer was long, I limited the search with this command.
jisao at 1[~]$ grep -HR "penguin" /usr;/etc

It seems that penguin is a very common name in Linux.  I got 353 files
matching the request.

Any ideas?

Jisao


More information about the QnA mailing list