NAME
look – find lines in a sorted list |
SYNOPSIS
look [ –dfnixtc ] [ string ] [ file ] |
DESCRIPTION
Look consults a sorted file and prints all lines that begin with
string. It uses binary search.
The following options are recognized. Options dfnt affect comparisons
as in sort(1).
If no file is specified, /lib/words is assumed, with collating
sequence df. |
FILES
/lib/words |
SOURCE
/sys/src/cmd/look.c |
SEE ALSO
sort(1), grep(1) |
DIAGNOSTICS
The exit status is ``not found'' if no match is found, and ``no
dictionary'' if file or the default dictionary cannot be opened. |