Monthly Archives: May 2012

Search in DTD’s on Windows – Fail!

So you have some DTD files: the main DTD files, model files, and entity files, in a number of folders and sub-folders on Windows XP.

They have extensions as follows:

  • dtd
  • mod
  • ent

Search for something using Windows Explorer, in it’s Search pane. Tell it to search all files and folders. Results? Only from some of the files, not all. Why?

Look at the no-search, no-folders mode of Windows Explorer. It offers to help you view videos, but can’t actually find any to show you. Odd, but related. This is because Windows is aware of a video file type with an extension of “mod”. So it won’t search those files.

Fail.

Let’s try the command line! You can use “find” to search the contents of files, but only in the current folder.

Fail.

Fix it with GetGnuWin32! And use grep to find your stuff.