August 1999
Intermediate to advanced
1000 pages
83h 9m
English
/usr/bin/look [-d][-f][-tc] string [filename]
The look command consults a sorted filename and prints all lines that begin with string . If you specify no file name, look uses /usr/share/lib/dict/words with collating sequence -df.
look limits the length of a search to 256 characters.
| -d | Dictionary order. Use only letters, digits, Tabs, and space characters in comparisons. |
| -f | Fold case. Do not distinguish uppercase letters from lowercase letters in comparisons. |
| -tc | Set termination character. Ignore all characters to the right of c in string . |
The following example uses the default dictionary to list all lines that begin with the string ...
Read now
Unlock full access