| GREP(1) | General Commands Manual | GREP(1) |
grep - pattern matching
grep [ -lnviLs ] pattern [ file... ]
Grep prints lines from each file that match the pattern, a regular expression as defined in regex (2). If no files are given, standard input is used. If more than one file is given, each line of output is preceded by the name of the file it was found in. The options are:
/appl/cmd/grep.b
Grep returns a non-nil exit status if no matches have been made, or if an error has occurred.