version 1.37, 2010/04/05 03:03:55 |
version 1.38, 2010/04/05 06:30:59 |
|
|
An empty expression matches every line. |
An empty expression matches every line. |
Each input line that matches at least one of the patterns is written |
Each input line that matches at least one of the patterns is written |
to the standard output. |
to the standard output. |
|
If no file arguments are specified, the standard input is used. |
.Pp |
.Pp |
.Nm grep |
.Nm grep |
is used for simple patterns and |
is used for simple patterns and |
|
|
and block buffered otherwise. |
and block buffered otherwise. |
.Pp |
.Pp |
.El |
.El |
If no file arguments are specified, the standard input is used. |
.Pp |
.Sh RETURN VALUES |
|
The |
The |
.Nm grep |
.Nm grep |
utility exits with one of the following values: |
utility exits with one of the following values: |
.Pp |
.Pp |
.Bl -tag -width flag -compact |
.Bl -tag -width Ds -offset indent -compact |
.It Li 0 |
.It Li 0 |
One or more lines were selected. |
One or more lines were selected. |
.It Li 1 |
.It Li 1 |