jisao
2006-11-11 21:52:21 UTC
I tried to grep the word penguin in /usr/share/dict/words, as in the LBo
book example. No success.
***@1[~]$ grep penguin /usr/share/dict/words
grep: /usr/share/dict/words: No such file or directory
***@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
***@1[~]$ grep penguin /etc/dictionaries-common/words
grep: /etc/dictionaries-common/words: No such file or directory
***@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
***@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.
***@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.
***@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
book example. No success.
***@1[~]$ grep penguin /usr/share/dict/words
grep: /usr/share/dict/words: No such file or directory
***@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
***@1[~]$ grep penguin /etc/dictionaries-common/words
grep: /etc/dictionaries-common/words: No such file or directory
***@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
***@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.
***@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.
***@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
--
QnA mailing list - To post: QnA-***@public.gmane.org
Site: http://LinuxBasics.org
List-options: http://LinuxBasics.org/cgi-bin/mailman/listinfo/qna
QnA mailing list - To post: QnA-***@public.gmane.org
Site: http://LinuxBasics.org
List-options: http://LinuxBasics.org/cgi-bin/mailman/listinfo/qna