grep [-l] [-n] [-e pattern] [-v] pattern [file... ]
Description
The grep command searches the input files (standard input, by default) for lines that match the pattern, a regular expression as defined in regex. Lines matching the pattern ('matching' lines) are printed to the standard output.
The minus (' - ') sign can be used on the command line to explicitly name standard input as an input source. The following command will search file1, then standard input, then file2.
grep pattern file1 - file2
Options
See Also
regex - regular expression recognizer in Chapter 15
infernosupport@lucent.com
Copyright © 1996,Lucent Technologies, Inc. All rights
reserved.