So i know the grep command is used to search for patterns in text files. I tried several times to search through some docx files to practice, and the grep command wont work. I keep getting a binary error.
So i used the "-a" command as explained by the man page to override the issue and nothing happens.
From what I gather the grep command only works on .txt files? (so most system files are saved in .txt form, but what if I want to utilize to search user files on the network that are .docx files) What command is used to search through .pdf files, and docx files?? Perhaps more specifically .docx since most people tend to save with that extension.
I got the same error on my mac pc when I was trying to use the command there as well.