| 1 | .TH LOOK 1 |
| 2 | .SH NAME |
| 3 | look \- find lines in a sorted list |
| 4 | .SH SYNOPSIS |
| 5 | .B look |
| 6 | [ |
| 7 | .B \-df |
| 8 | ] |
| 9 | string |
| 10 | [ file ] |
| 11 | .SH DESCRIPTION |
| 12 | .I Look |
| 13 | consults a sorted |
| 14 | .I file |
| 15 | and prints all lines that begin with |
| 16 | .IR string . |
| 17 | It uses binary search. |
| 18 | .PP |
| 19 | The options |
| 20 | .B d |
| 21 | and |
| 22 | .B f |
| 23 | affect comparisons as in |
| 24 | .IR sort (1): |
| 25 | .TP 4 |
| 26 | .B d |
| 27 | `Dictionary' order: |
| 28 | only letters, digits, |
| 29 | tabs and blanks participate in comparisons. |
| 30 | .TP 4 |
| 31 | .B f |
| 32 | Fold. |
| 33 | Upper case letters compare equal to lower case. |
| 34 | .PP |
| 35 | If no |
| 36 | .I file |
| 37 | is specified, |
| 38 | .I /usr/dict/words |
| 39 | is assumed with collating sequence |
| 40 | .B \-df. |
| 41 | .SH FILES |
| 42 | /usr/dict/words |
| 43 | .SH "SEE ALSO" |
| 44 | sort(1), grep(1) |