

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
