Search for text string within microsoft word docs on mac

broken image
broken image

If you are just using grep to try to find files that contain a certain string, you may be better off using mdfind instead - it’s the command-line equivalent of Mac OS Spotlight. But sometimes it is is not obvious why Word has divided a text into 2 runs. For example, if the text “kat” had different formatting from “Abe”, it would be in a separate run with some extra XML elements That described the formatting. Each run is surrounded by xml tags, so your text might look something like Abekat.

broken image

Search results are grouped into files containing the search term. That’s because word sometimes divides a piece of contiguous text into separate “runs”. Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. rels and others, running grep against those files may not find the word Abekat. docx file, which should give you a folder structure containing a number of files such as. zip file (or if it did, it would be “by accident”)Įven if you unzip the. zip file, which is compressed, so the sequence of characters Abekat does not exist in the.