look(1) General Commands Manual look(1)
Name
look - find lines in sorted data
Syntax
look [-df] string [file]
Description
The 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 If no file is specified, is assumed with collating sequence -df.
-d Uses dictionary order: only letters, digits, tabs and blanks can be compared.
-f Folds uppercase to lowercase (compares equally).
Files
/usr/dict/words
See Also
grep(1), sort(1)
look(1)