

Input is searched, a pathname of "(standard input)" shall be written, in the POSIX Pathnames shall be written once per file searched. l (The letter ell.) Write only the names of files containing selected lines to i Perform pattern matching in searches without regard to case see the Baseĭefinitions volume of IEEE Std 1003.1-2001, Section 9.2, Regular Expression General Specified, each pattern shall be treated as a BRE, as described in the Baseĭefinitions volume of IEEE Std 1003.1-2001, Section 9.3, Basic Regular Expressions. Specified by an empty line in pattern_file. Patterns in pattern_file shall be terminated by a. Read one or more patterns from the file named by the pathname pattern_file. All of the specified patterns shallīe used when matching lines, but the order of evaluation is unspecified. Options shall be accepted by the grep utility. IEEE Std 1003.1-2001, Section 9.3, Basic Regular Expressions. Treated as a BRE, as described in the Base Definitions volume of Unless the -E or -F option is also specified, each pattern shall be A null pattern can be specified by two adjacent s in TheĪpplication shall ensure that patterns in pattern_list are separated by a

Specify one or more patterns to be used during the search for input. c Write only a count of selected lines to standard output. Sequence of bytes, the line shall be matched. If an input line contains any of the patterns as a contiguous Treat each pattern specified as a string instead of a Input line excluding the terminating, the line shall be matched. If any entire ERE pattern matches some part of an Treat each pattern specified as an ERE,Īs described in the Base Definitions volume of IEEE Std 1003.1-2001, Section 9.4,Įxtended Regular Expressions. E Match using extended regular expressions. The following options shall be supported:

The grep utility shall conform to the Base Definitions volume of IEEE Std 1003.1-2001, Terminating s) of the input, there is no way for a pattern to match a Similarly, since patterns are matched against individual lines (excluding the Terminates patterns (see the -e and -f options below), regular expressions cannot containĪ. Regular expression matching shall be based on text lines. By default, each selected input line shall (BRE) as described in the Base Definitions volume of IEEE Std 1003.1-2001, Section 9.3,īasic Regular Expressions, matches any part of the line excluding the terminating Input line shall be selected if any pattern, treated as an entire basic regular expression Value shall consist of one or more patterns separated by s the pattern_file'sĬontents shall consist of one or more patterns terminated by. Specified by the -e option, -f option, or the pattern_list operand. Patterns the types of patterns are controlled by the options specified. The grep utility shall search the input files, selecting lines matching one or more
