extract words frm dictionary
could u pls tell me which would be the efficient way to extract all the words(which has all the specified letters ) from a linux dictionary..
example get all the valid words with letters with letters A,B,C,D,E,H |
what do you mean by linux dictionary?
|
It depends on what you mean by dictionary and valid words. For example: on my machine in /usr/share/dict/ directory there is a file named words. It starts with ``aback'', ends with ``zoos'' and contains 38619 words. To search through it the words containing a, b, c, d, e and h letters exclusively I use the command:
Code:
egrep -e "^[abcdeh]+$" words Code:
abbe |
i mean the words present in usr/share/dict/words in linux
|
hey can u pls tell me how to do the same in a progaram written in java ?
can i use egrep -e "^[abcdeh]+$" words inside java program which runs on linux machine? |
Read that thread and don't stop on the first answer.
|
All times are GMT -5. The time now is 11:40 PM. |