BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / look.0
LOOK(1) UNIX Programmer's Manual LOOK(1)
N\bNA\bAM\bME\bE
look - find lines in a sorted list
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
l\blo\boo\bok\bk [ -\b-d\bdf\bf ] string [ file ]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
_\bL_\bo_\bo_\bk consults a sorted _\bf_\bi_\bl_\be and prints all lines that begin
with _\bs_\bt_\br_\bi_\bn_\bg. It uses binary search.
The options d\bd and f\bf affect comparisons as in _\bs_\bo_\br_\bt(1):
d\bd `Dictionary' order: only letters, digits, tabs and
blanks participate in comparisons.
f\bf Fold. Upper case letters compare equal to lower case.
If no _\bf_\bi_\bl_\be is specified, /_\bu_\bs_\br/_\bd_\bi_\bc_\bt/_\bw_\bo_\br_\bd_\bs is assumed with
collating sequence -\b-d\bdf\bf.\b.
F\bFI\bIL\bLE\bES\bS
/usr/dict/words
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
sort(1), grep(1)
Printed 7/9/88 April 29, 1985 1