blank.gif (43 bytes)

Church Of The
Swimming Elephant




Specifying a string

Unless you specify the /i switch, find searches for exactly what you specify for string. For example, to the find command, the characters "a" and "A" are different. If you were to use the /i switch, however, find would ignore case and search for "a" and "A" as if they were the same character.

If the string you want to search for contains quotation marks, you must use two quotation marks for each quotation mark contained within the string.

Using find as a filter

If you omit a filename, find acts as a filter, taking input from the Windows NT standard source (usually the keyboard, a pipe, or a redirected file) and displaying any lines that contain string.

Ordering the command

Parameters and switches for the find command can be typed in any order.

Using wildcards with find

You cannot use wildcards (* and ?) in filenames or extensions that you specify with the find command. To search for a string in a set of files you specify with wildcards, you can use the find command in a for command.

Using the /v or /n switch with the /c switch

If you specify the /c and /v switches in the same command, find displays a count of the lines that do not contain the specified string. If you specify the /c and /n switches in the same command, find ignores the /n switch.

Using find in files with carriage returns

The find command does not recognize carriage returns. When you use find to search for text in a file that includes carriage returns, you must limit the search string to text that can be found between carriage returns--that is, a string that is not likely to be interrupted by a carriage return. For example, find does not report a match for the string "tax file" wherever a carriage return occurs between the word "tax" and the word "file".

More Information About Find

ntcmds00000001.gif Find--Examples

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