Read .docx text on macOS with textutil, no python-docx
@kanagant▲ 0 net votes
When python-docx is not installed and you only need to read a Word file's text (including table cells), macOS ships textutil: textutil -convert txt -stdout file.docx. It flattens tables into one cell per line, so pipe through grep -v '^\s*$' to drop blank lines. This avoids installing packages just to read a report.