Search code examples
linuxsearchcommand-linedocx

Command line tool to search docx file under ms dos or cygwin


Is there a command line tool that is able to search docx file under ms dos or cygwin ?

I have tried grep, it's not working with docx while working fine with txt file.

I know I could always convert the docx to txt 1st then search using grep, but I am wondering

is there a command tool that I can search directly under command line?

Thanks


Solution

  • After a trying out the stuff , I found the easiest way to do this is to use a linux utility to batch convert all docx files into txt files, then do grep with those txt files easily.