Discussion:
/usr/share/dict/words (section 3.3.3.4.1 General line filtering)
jisao
2006-11-11 21:52:21 UTC
Permalink
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
--
QnA mailing list - To post: QnA-***@public.gmane.org
Site: http://LinuxBasics.org
List-options: http://LinuxBasics.org/cgi-bin/mailman/listinfo/qna
J Twtchell
2006-11-11 22:42:02 UTC
Permalink
Post by jisao
I am baffled... How can I find the words file in the
dictionaries
installed on my computers?
Try

find / -iname words 2> /dev/null




____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
--
QnA mailing list - To post: QnA-***@public.gmane.org
Site: http://LinuxBasics.org
List-options: http://LinuxBasics.org/cgi-bin/mailman/listinfo/qna
Anita Lewis
2006-11-11 23:07:25 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by jisao
I tried to grep the word penguin in /usr/share/dict/words, as in the LBo
book example. No success.
grep: /usr/share/dict/words: No such file or directory
lrwxrwxrwx 1 root root 30 2006-10-29 22:27 /usr/share/dict/words ->
/etc/dictionaries-common/words
I got this as well. I did

ls -l /usr/share/dict and found a couple more files there:

- -rw-r--r-- 1 root root 931467 2005-12-20 13:58 american-english
- -rw-r--r-- 1 root root 929603 2005-12-20 13:58 british-english

I grepped the american-english for penguin and found it. So I made the
link in /etc/dictionaries-common/ point back to it:

cd /etc/dictionaries-common
ln -s /usr/share/dict/american-english word

Then the links all worked and the dictionary was found. Do you have any
other files in /usr/share/dict/ ?

Anita

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFVletyWhnrN8WuI0RAl05AJ4nlCJmTF42SRnXY7ABBUV/+O16TACfWTMZ
eMV4GuJc++MwBFhBCzUOcd0=
=HKF1
-----END PGP SIGNATURE-----
--
QnA mailing list - To post: QnA-***@public.gmane.org
Site: http://LinuxBasics.org
List-options: http://LinuxBasics.org/cgi-bin/mailman/listinfo/qna
Eric Archer
2006-11-12 00:04:47 UTC
Permalink
Post by Anita Lewis
Post by jisao
I tried to grep the word penguin in /usr/share/dict/words, as in the LBo
book example. No success.
grep: /usr/share/dict/words: No such file or directory
lrwxrwxrwx 1 root root 30 2006-10-29 22:27 /usr/share/dict/words ->
/etc/dictionaries-common/words
I got this as well. I did
-rw-r--r-- 1 root root 931467 2005-12-20 13:58 american-english
-rw-r--r-- 1 root root 929603 2005-12-20 13:58 british-english
I grepped the american-english for penguin and found it. So I made the
cd /etc/dictionaries-common
ln -s /usr/share/dict/american-english word
Then the links all worked and the dictionary was found. Do you have any
other files in /usr/share/dict/ ?
Anita
Mine looked like this. I found the words but it would not spell check.

***@linux:/> cd /usr/share/dict/
***@linux:/usr/share/dict> ls -l
total 2028
-rw-r--r-- 1 root root 2070606 2006-04-22 21:47 american
lrwxrwxrwx 1 root root 19 2006-10-22 00:20 words -> /var/lib/dict/words
***@linux:/usr/share/dict> grep pinguin /usr/share/dict/american
***@linux:/usr/share/dict> grep pinguin /usr/share/dict/words
***@linux:/usr/share/dict> file american
american: ISO-8859 text
***@linux:/usr/share/dict> grep penguin american
penguin
penguins
penguin's
--
QnA mailing list - To post: QnA-***@public.gmane.org
Site: http://LinuxBasics.org
List-options: http://LinuxBasics.org/cgi-bin/mailman/listinfo/qna
Howard Rosen
2006-11-12 16:55:18 UTC
Permalink
Post by jisao
I tried to grep the word penguin in /usr/share/dict/words, as in the LBo
book example. No success.
In suse10.1 I entered your command:
***@linux:~> grep penguin /usr/share/dict/words
penguin
penguins
penguin's

and you can see above the results. That rules out any problem with your
entry. Hope this helps you resolving this situation.

Howard
Post by jisao
grep: /usr/share/dict/words: No such file or directory
lrwxrwxrwx 1 root root 30 2006-10-29 22:27 /usr/share/dict/words ->
/etc/dictionaries-common/words
grep: /etc/dictionaries-common/words: No such file or directory
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
/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.
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.
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
Howard Rosen
2006-11-12 17:00:17 UTC
Permalink
Post by jisao
I tried to grep the word penguin in /usr/share/dict/words, as in the LBo
book example. No success.
In suse10.1 I entered your command:
***@linux:~> grep penguin /usr/share/dict/words
penguin
penguins
penguin's

and you can see above the results. That rules out any problem with your
entry. Hope this helps you resolving this situation.

I then entered the following:
***@linux:~> ll /usr/share/dict/words
and received:
lrwxrwxrwx 1 root root 19 2006-11-02 09:06 /usr/share/dict/words -> /var/lib/dict/words
A linked file.

Howard
Post by jisao
grep: /usr/share/dict/words: No such file or directory
lrwxrwxrwx 1 root root 30 2006-10-29 22:27 /usr/share/dict/words ->
/etc/dictionaries-common/words
grep: /etc/dictionaries-common/words: No such file or directory
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
/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.
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.
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
Loading...