Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

look(1)

Name

look - find words in the system dictionary or lines in a sorted list

Synopsis

/usr/bin/look [-d] [-f] [-tc] string [filename]

Description

The look command consults a sorted filename and prints all lines that begin with string.

If no filename is specified, look uses /usr/share/lib/dict/words with collating sequence –df.

look limits the length of a word to search for to 256 characters.

Options

–d

Dictionary order. Only letters, digits, TAB and SPACE characters are used in comparisons.

–f

Fold case. Uppercase letters are not distinguished from lowercase in comparisons.

–tc

Set termination character. All characters to the right of c in string are ignored.

Files

/usr/share/lib/dict/words

spelling list

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
text/spelling-utilities

See Also

sort(1), grep(1), attributes(7)