LOOK(1plan9) | LOOK(1plan9) |
look - find lines in a sorted list
look [ -dfnixtc ] [ string ] [ file ]
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.
/lib/words
/src/cmd/look.c
sort(1), grep(1)
The exit status is ``not found'' if no match is found, and ``no dictionary'' if file or the default dictionary cannot be opened.