BSD 4_1_snap development
[unix-history] / usr / man / man1 / look.1
CommitLineData
e3758c96
C
1.TH LOOK 1
2.SH NAME
3look \- find lines in a sorted list
4.SH SYNOPSIS
5.B look
6[
7.B \-df
8]
9string
10[ file ]
11.SH DESCRIPTION
12.I Look
13consults a sorted
14.I file
15and prints all lines that begin with
16.IR string .
17It uses binary search.
18.PP
19The options
20.B d
21and
22.B f
23affect comparisons as in
24.IR sort (1):
25.TP 4
26.B d
27`Dictionary' order:
28only letters, digits,
29tabs and blanks participate in comparisons.
30.TP 4
31.B f
32Fold.
33Upper case letters compare equal to lower case.
34.PP
35If no
36.I file
37is specified,
38.I /usr/dict/words
39is assumed with collating sequence
40.B \-df.
41.SH FILES
42/usr/dict/words
43.SH "SEE ALSO"
44sort(1), grep(1)