.TH look "" "" Command
.PC "Find matching lines in a sorted file"
\fBlook [-df] \fIstring\fR [\fIfile\^\fB]\fR
.PP
.HS
.SH Options:
.IC \fB\-d\fR
Dictionary ordering
.IC \fB\-f\fR
Fold cases for comparison
.Pp
If no \fIfile\fR, \fBlook\fR uses \fB/usr/dict/words\fR with \fB\-df\fR option.
.HE
The command
.B look
scans the sorted
.I file
and prints each line that begins with
.IR string .
.PP
The following options specify the order of the search:
.RS
.IP \fB-d\fR 0.3i
Use dictionary order:
the only characters tested are alphanumerics and blanks.
.IP \fB-f\fR
Convert all alphabetic characters to upper case.
.RE
.PP
If no
.I file
is specified,
.B look
uses
.B /usr/dict/words
with the
.B -df
option.
.SH Example
For an example of how to use this command, see the entry for
.BR spell .
.SH Files
\fB/usr/dict/words\fR \(em File of words (sorted with \fBsort -df\fR).
.SH "See Also"
.Xr "commands," commands
.Xr "sort" sort
.SH Notes
Because the file
.B /usr/dict/words
is quite large, you may not have installed it or uncompressed it when
you installed your \*(CO system.
If this is the case,
.B look
will not work correctly.
