FIND command
top of page

FIND command


In order to run a search for file names containing a specified string enter this script at the command prompt:

dir c:\ /s /b | find "whale"

. . . if you want to search for a string in a specified file and determine the line numbers on which the string appears, run:

find /n "whale" melville.txt

. . . in this example:

. . . you will get the result: [5]a big whale


bottom of page