Penguin
Annotated edit history of look(1) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 ----
2 __NAME__
3
4
5 look - display lines beginning with a given
6 string
7 __SYNOPSIS__
8
9
10 look [[-df] [[-t termchar] string [[file ...]
11 __DESCRIPTION__
12
13
14 The look utility displays any lines in file which contain
15 string as a prefix. As look performs a binary search, the
16 lines in file must be sorted.
17
18
19 If file is not specified, the file /usr/share/dict/words is used, only alphanumeric characters are compared and the case of alphabetic characters is ignored.
20
21
22 Options:
23 -d Dictionary character set and order, i.e. onlyalphanumeric characters are compared.
24
25
26 -fIgnore the case of alphabetic characters.-tSpecify a string termination character, i.e. only thecharacters in string up to and including the firstoccurrence of termchar are compared.The look utility exits 0 if one or more lines were found anddisplayed, 1 if no lines were found, and __FILES__
27 /usr/share/dict/words
28
29
30 the dictionary
31
32
33 __SEE ALSO__
34
35
36 grep(1), sort(1)
37 __COMPATIBILITY__
38
39
40 The original manual page stated that tabs and blank charac-
41 ters participated in comparisons when the -d option was
42 specified. This was incorrect and the current man page
43 matches the historic implementation.
44 __HISTORY__
45
46
47 Look appeared in Version 7 AT
48 .
49
50
51 BSD June 14, 1993 1
52 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.