I am trying use the results of "file" which returns info about the file/s I specify.
E.g.
file *.doc 'all .doc extensions This then returns information about the file including "Name of Creating Application: Microsoft Word" Now, I am trying to search the results for the string "Word". I'm stuck here. How doIido I actually do that?
*This is what I tried after hours of searching. I just don't know what word I'm looking for. Please advise.
find . -type f -print0 | xargs -0 grep -lh "Microsoft Word" | xargs -I % mv % ../NewDirectory/ I think this searches for the string "Word" inside the files itself and moves it to the new directory.