version 1.3, 1998/09/26 19:55:01 |
version 1.4, 1999/06/05 01:21:32 |
|
|
.Ar string |
.Ar string |
.Op Ar file |
.Op Ar file |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
.Nm look |
.Nm |
utility displays any lines in |
utility displays any lines in |
.Ar file |
.Ar file |
which contain |
which contain |
.Ar string |
.Ar string |
as a prefix. |
as a prefix. |
As |
As |
.Nm look |
.Nm |
performs a binary search, the lines in |
performs a binary search, the lines in |
.Ar file |
.Ar file |
must be sorted. |
must be sorted. |
|
|
.El |
.El |
.Pp |
.Pp |
The |
The |
.Nm look |
.Nm |
utility exits 0 if one or more lines were found and displayed, |
utility exits 0 if one or more lines were found and displayed, |
1 if no lines were found, and >1 if an error occurred. |
1 if no lines were found, and >1 if an error occurred. |
.Sh FILES |
.Sh FILES |
|
|
This was incorrect and the current man page matches the historic |
This was incorrect and the current man page matches the historic |
implementation. |
implementation. |
.Sh HISTORY |
.Sh HISTORY |
.Nm look |
.Nm |
appeared in Version 7 AT&T Unix. |
appeared in Version 7 AT&T Unix. |