Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ look(1) — Unisoft V7

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sort(1)

grep(1)

LOOK(1)  —  UNIX Programmer’s Manual

NAME

look − find lines in a sorted list

SYNOPSIS

look [ −df ] string [ file ]

DESCRIPTION

Look consults a sorted file and prints all lines that begin with string. The shell is usually happier if you put double quotation marks around string. 

The options d and f affect comparisons as in sort(1):

d "Dictionary" order: only letters, digits, tabs and blanks participate in comparisons. 

f Fold.  Upper case letters compare equal to lower case. 

If no file is specified, /usr/dict/words is assumed with collating sequence −df.  You can use this to discover whether a given word is included in the on-line dictionary. 

EXAMPLE

look -f "This" filea

prints all the lines that begin with the word "This", in upper or lower case. 

FILES

/usr/dict/words

SEE ALSO

sort(1), grep(1)

7th Edition  —  1/27/82

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