Move everything from /var/adm to /var/log
[unleashed.git] / share / man / man1 / look.1
blob59256214941d7e3d11438659f07e6cecc3b749fa
1 '\" te
2 .\"  Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH LOOK 1 "Mar 29, 1994"
7 .SH NAME
8 look \- find words in the system dictionary or lines in a sorted list
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/usr/bin/look\fR [\fB-d\fR] [\fB-f\fR] [\fB-t\fR\fIc\fR] \fIstring\fR [\fIfilename\fR]
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 The \fBlook\fR command consults a sorted \fIfilename\fR and prints all lines
19 that begin with \fIstring\fR.
20 .sp
21 .LP
22 If no  \fIfilename\fR is specified, \fBlook\fR uses
23 \fB/usr/share/lib/dict/words\fR with collating sequence \fB-df\fR.
24 .sp
25 .LP
26 \fBlook\fR limits the length of a word to search for to 256 characters.
27 .SH OPTIONS
28 .sp
29 .ne 2
30 .na
31 \fB\fB-d\fR\fR
32 .ad
33 .RS 7n
34 Dictionary order. Only letters, digits,  \fBTAB\fR and \fBSPACE\fR characters
35 are used in comparisons.
36 .RE
38 .sp
39 .ne 2
40 .na
41 \fB\fB-f\fR\fR
42 .ad
43 .RS 7n
44 Fold case. Upper case letters are not distinguished from lower case in
45 comparisons.
46 .RE
48 .sp
49 .ne 2
50 .na
51 \fB\fB-t\fR\fIc\fR\fR
52 .ad
53 .RS 7n
54 Set termination character. All characters to the right of \fIc\fR in
55 \fIstring\fR are ignored.
56 .RE
58 .SH FILES
59 .sp
60 .ne 2
61 .na
62 \fB\fB/usr/share/lib/dict/words\fR\fR
63 .ad
64 .RS 29n
65 spelling list
66 .RE
68 .SH SEE ALSO
69 .sp
70 .LP
71 \fBgrep\fR(1), \fBsort\fR(1), \fBattributes\fR(5)