I've written two programs that scan wordlists. Feel free to modify the programs in any way; I provide no guarantee about your data or anything, though neither one does anything out of the ordinary. The code was written to compile under gcc. If there are any problems, or you have programs you'd like to share, just e-mail me at kutin@math.uchicago.edu.