Linux – Is there a module for searching msword document files on Linux?

Is there a module for searching msword document files on Linux?… here is a solution to the problem.

Is there a module for searching msword document files on Linux?

Usually I search using grep -r --color word/path/dir, but this doesn’t work for binaries. So I wanted to write a Perl script to do something similar. So I’m searching for a module that can read document files on a Linux machine (probably something like Spreadsheet::P arseExcel for ms-word-documents).

Solution

There are many word-to-text converters (like antidoc, wv, catdoc, unoconv…). You can grep through their output. This is also what msysgit does for cataloging doc files.

Related Problems and Solutions