Specifying multiple arguments for FIND

You can specify multiple arguments for the FIND command, by using OR clauses or AND clauses. You cannot use both AND and OR clauses in the same search. If you specify one or more OR clauses, then a record is selected when any of the arguments are found in the record. If you specify one or more AND clauses, then a record is selected only if all of the arguments are found in the record. The maximum number of arguments that you can specify is 16.

When you use a FIND command in batch, you may need to use more than one line to specify multiple arguments. To indicate that a line is continued, ensure the last item on the line is a blank-delimited comma.

The following command finds records containing either of the strings “GROSS” or “NET”:

FIND GROSS | NET

The following command finds only records containing all of the strings“HAPPY DAYS”,“HERE”, and “AGAIN”:

FIND 'HAPPY DAYS' AND HERE AND AGAIN

Related topics