LOOK(1) — Unix Programmer’s Manual
NAME
look − find lines in a sorted list
SYNOPSIS
look [ options ] string [ file ]
DESCRIPTION
Look consults a sorted file and prints all lines that begin with string. It uses binary search.
If you do not specify a file, look uses /usr/dict/words with the collating sequence −df.
OPTIONS
The options d and f affect comparisons as in sort(1):
−d Searches in ‘dictionary’ order: only letters, digits, tabs and blanks participate in comparisons.
−f Folds the letters. Upper case letters compare equal to lower case.
FILES
/usr/dict/words
SEE ALSO
INTEGRATED SOLUTIONS 4.3 BSD — April 29, 1985