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