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.
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
SEE ALSO
Commands