blank.gif (43 bytes)

Church Of The
Swimming Elephant




To display all lines from the file PENCIL.AD that contain the string "Pencil Sharpener", type the following command:

find "Pencil Sharpener"

To find a string that contains text within quotation marks, you must enclose the entire string in quotation marks and, in addition, use two quotation marks for each quotation mark contained within the string, as shown in the following example:

find "The scientists labeled their paper ""for discussion only."" It is not a final report." report.doc

If you want to search for a set of files, you can use the find command with the for command. The following command uses this method to search the current directory for files that have the extension .BAT; in each file found, the command searches for the string "PROMPT":

for %f in (*.bat) do find "PROMPT" %f

Suppose you want find to search your hard disk to find and display the filenames on drive C that contain the string "CPU". To do this you can use the pipe (|) to direct the results of a dir command to find, as shown in the following example:

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

Since find searches are case-sensitive and since dir produces uppercase output, you must either type the string "CPU" in uppercase letters or use the /i switch with find.

More Information About Find

ntcmds00000001.gif Find--Notes

ntcmds00000001.gif Find


Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

Have you gone to church today?
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609