Search notes:

/usr/share/dict/

Find a German word, used in Switzerland, that has a letter occuring nine times:
$ grep -P '(.).*\1.*\1.*\1.*\1.*\1.*\1.*\1.*\1' /usr/share/dict/swiss
Wissenschaftsausschusses

Install packages in Debian

Search packages for /usr/share/dict, but exclude its subdirectories:
$ apt-file search -x  /usr/share/dict/[^/]+$
cracklib-runtime: /usr/share/dict/cracklib-small
dictionaries-common: /usr/share/dict/README.select-wordlist
miscfiles: /usr/share/dict/connectives.gz
miscfiles: /usr/share/dict/propernames.gz
miscfiles: /usr/share/dict/web2
miscfiles: /usr/share/dict/web2a.gz
wamerican: /usr/share/dict/american-english
wamerican: /usr/share/dict/words
…
wngerman: /usr/share/dict/ngerman
…
wswedish: /usr/share/dict/swedish
wswiss: /usr/share/dict/swiss
wukrainian: /usr/share/dict/ukrainian
Install the interesting packages:
$ sudo apt install -y wamerican wswiss
Count words in dictionaries:
$ cd /usr/share/dict
$ wc -l american-english swiss
 102774 american-english
 356110 swiss
 458884 total

See also

/usr/share

Index