China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-28 02:56
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » How to use the FIND command View 2,641 Replies 2
Original Poster Posted 2006-03-04 08:57 ·  中国 河北 邯郸 联通
初级用户
Credits 34
Posts 9
Joined 2006-03-02 20:04
20-year member
UID 51248
Gender Male
Status Offline
How do you use the FIND command~~
There’s no introduction to it anywhere
Floor 2 Posted 2006-03-04 14:05 ·  中国 江西 南昌 电信
中级用户
★★
Credits 486
Posts 171
Joined 2006-02-12 13:53
20-year member
UID 50233
Status Offline
The FIND command is used to search for strings in files.
FIND "string" filename]

/V Displays all lines that do not contain the specified string.
/C Displays only the count of lines containing the string.
/N Displays line numbers.
/I Ignores case when searching for the string.
"string" Specifies the text string to search for,
filename
Specifies the file to search.

If no path is specified, FIND will search the text you type or the text produced by another command.

eg:
FIND /I "QWERT" D:\txt\d.txt

[ Last edited by henrya2 on 2006-3-4 at 17:27 ]
Those who do not study the past are condemned to repeat it
Floor 3 Posted 2010-11-13 20:10 ·  中国 广东 佛山 顺德区 电信
初级用户
Credits 59
Posts 28
Joined 2010-11-05 01:45
15-year member
UID 177110
Gender Male
Status Offline
What is the return value after find, and how do you use it?
Forum Jump: