LOOK(1,C) AIX Commands Reference LOOK(1,C)
-------------------------------------------------------------------------------
look
PURPOSE
Consults a sorted file and prints all lines that begin with string.
SYNTAX
+-------------+ +------------+
look ---| +---------+ |--- string ---| |---|
+-| -d |-+ +--- file ---+
^| -f || ^ |
|| -t char || +--------+
|+---------+|
+-----------+
Note: This command does not have MBCS support.
DESCRIPTION
The look command consults a sorted file and prints all lines that begin with
string. It uses binary search.
The options -d and -f affect comparisons as in sort.
If no file is specified, /usr/dict/words is assumed with collating sequence
-df.
FLAGS
-d "Dictionary" order: only letters, digits, tabs and blanks participate in
comparisons.
-f Fold. Uppercase letters compare equal to lower case.
-t char
Use char as the tab character.
RELATED INFORMATION
See the following commands: "sort" and "grep, egrep, fgrep."
Processed November 8, 1990 LOOK(1,C) 1