Format: SEARCH [FROM] {(name | pattern} [SEARCH] (string | pattern) [ALL] [NONUM] [QUIET]
[QUICK] [FILE] [PATTERN] Template: FROM/M,SEARCH/A,ALL/S,NONUM/S,QUIET/S,QUICK/S,FILES/S,PATTERN/S Location: C:
SEARCH looks through all the files in the FROM directory for the string given in the SEARCH string. If the ALL switch is given, SEARCH also looks through all the subdirectories of the FROM directory. SEARCH displays the name of the file bieng searched and any line that contains the string sought.
Option are as follows.
NONUM Line numbers are not printed with the strings. QUIET Searches quietly; file names being searched are not displayed. QUICK uses a more compact output format. FILE Looks for a file by the specified name, rather than for a string in the file. PATTERN Uses pattern matching to search for the string.
SEARCH leaves a 0 in the condition flag if the object is found, and a 5 (WARN) otherwise. To abandon the search of the current file and continue to the next file, if any, press Ctrl+D. SEARCH is aborted when Ctrl+C is pressed.
Example: