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

Anita Lewis a.lewis at linuxbasics.org
Sun Nov 12 00:07:25 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/11/2006 04:52 PM jisao wrote:
> 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
>   
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-----


More information about the QnA mailing list