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