antiword

Utility to extract text from Microsoft Word (.doc) files

brewmacoslinux
Try with needOr install directly
Source

About

Utility to read Word (.doc) files

Commands

antiword

Examples

Extract text from a Word document and display to stdout$ antiword document.doc
Convert Word document to text file$ antiword document.doc > output.txt
Extract text with specific encoding (e.g., UTF-8)$ antiword -t document.doc