please dont rip this site
FIND + Finding Strings Within Files

Locates and displays all lines in a file or group of files

that contain a specified string.


PC-DOS 2.0+

MS-DOS equivalent: FIND (2.0+)




[d:][path] FIND [C][/N] "string"



[d:][path] Specifies the drive letter and

path that contain the FIND

command file.

/V Displays all lines that do not

contain the string.

/C Displays a count of the lines

that contain the string.

/N Displays the line number of

each line found as well as the


"string" Specifies the search string,

which can have up to 250

characters and must be

enclosed in double quotes.

Wildcards are not permitted.

[sd:][spath]sfilename Specifies the file to be

searched. FIND locates all

records or lines in the file

that match the specified

search string.


FIND "Oct. 28, 1988" INVOICES.TXT

locates and displays all lines containing the string "Oct. 28,

1988" in the file named INVOICES.TXT.


locates and displays all lines containing the string "Oct. 28,

1988" in the file named INVOICES.TXT on the default drive and the

file named STMNTS.TXT on drive B.

FIND C"Oct. 28, 1988" INVOICES.TXT


---------- INVOICES.TXT: 201

indicating that 201 lines in the file did not contain the string.


locates all of the lines in INVOICES.TXT that contain Smith.

Then, it passes this information to the FIND filter a second time

to locate all of the lines that also contain the city Reno. The

resulting output will display only those lines that contain both

Smith and Reno.


Used with the MORE command, the output from FIND can be sent

to the screen one screen at a time.


[For related topics, press R]


MORE Command

Replaceable Parameters in Batch Files

SORT Command

file: /Techref/dos/command/find.htm, 2KB, , updated: 1999/2/20 11:24, local time: 2024/4/13 17:45,

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF=""> dos command find</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2024 contributors:
o List host: MIT, Site host, Top posters @none found
- Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.

Welcome to!