look(1)
Name
look − find lines in sorted data
Syntax
look [−df] string [file]
Description
The look command consults a sorted file and prints all lines that begin with string. It uses binary search. B
Options
The options d and f affect comparisons as in sort(.). If no file is specified, /usr/dict/words is assumed with collating sequence −df.
−dUses dictionary order: only letters, digits, tabs and blanks can be compared.
−fFolds uppercase to lowercase (compares equally).
Files
/usr/dict/words