I think antiword might be what you need.
In reply to Re: Inverted indexes and MS Word by thpfft in thread Inverted indexes and MS Word by astroboy