File management can be tricky business, especially if you want to find files that contain certain words or phrases. The FIND and FINDSTR utilities help here, allowing you to search for text strings in files or determine which files contain those words. For example, if you wanted to display all of the lines in the file c:\test.txt that included the string “Dan” along with the line number that this string appears on, type FIND /N “Dan” c:\test.txt.
The FIND and FINDSTR commands include a number of different switches, and provides a variety of search options, including the use of wildcard characters.