xref: /titanic_51/usr/src/man/man1/look.1 (revision 1886f67eb9de99edbcda88765f2c603a30c87fc2)
te
Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
LOOK 1 "Mar 29, 1994"
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. Upper case letters are not distinguished from lower case 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

SEE ALSO

grep(1), sort(1), attributes(5)