Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ look(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sort

grep, egrep, fgrep



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



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026