Download Advanced user manual
Transcript
advuser.book Page 15 Friday, September 27, 2002 4:22 PM Command Descriptions Syntax FIND [/option] match-string [filespec] Options The /C option causes FIND to only display the count of lines found with the specified string. The /N option causes FIND to display the line number of the line found containing the string. The /V option causes FIND to display the lines that do not contain the string. The match-string argument specifies the word or group of characters to search for. The filespec argument specifies the file or group of files to search in. The complete drive and path can be specified. Wildcard characters can be used in the filename. Examples The following example shows each line in the file JUNK.C that contains the string “printf”. FIND printf junk.c The following example shows each line in a directory listing that contains a DIR. The command first executes a DOS DIR command with the output piped into the FIND command. The FIND command then displays each line that contains the string “DIR”. dir ¦ FIND DIR The following example give a count of the lines in the file MANUAL.TXT that contain the string “ROM-DOS”. FIND /C ROM-DOS MANUAL.TXT .....MANUAL.TXT: 105 HELP Type Internal Purpose Provides on-line help of each ROM-DOS command. Advanced User’s Guide B-15