xref: /original-bsd/usr.bin/look/look.1 (revision 95a66346)
1.\" Copyright (c) 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)look.1	6.5 (Berkeley) 03/14/91
7.\"
8.Vx
9.Vx
10.Dd
11.Dt LOOK 1
12.Os
13.Sh NAME
14.Nm look
15.Nd display lines beginning with a given string
16.Sh SYNOPSIS
17.Nm look
18.Op Fl df
19.Ar string
20.Op Ar file
21.Sh DESCRIPTION
22The
23.Nm Look
24utility searchs a text
25.Ar file
26for all
27matches of
28.Ar string .
29The
30.Ar file
31must be sorted for
32.Nm look
33to work properly. If
34.Ar file
35is not specified, the file
36.Pa /usr/share/dict/words
37is used.
38.Pp
39Options:
40.Tw Ds
41.Tp Ar d
42Dictionary character set and order.
43.Tp Ar f
44Ignore case.
45.Tp
46.Sh FILES
47.Dw /usr/share/dict/words
48.Di L
49.Dp Pa /usr/share/dict/words
50A spelling dictionary.
51.Dp
52.Sh SEE ALSO
53.Xr sort 1 ,
54.Xr grep 1
55.Sh HISTORY
56.Nm Look
57appeared in Version 7 AT&T Unix.
58