*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> look (1)              
Title
Content
Arch
Section
 

LOOK(1)

Contents


NAME    [Toc]    [Back]

     look -- display lines beginning with a given string

SYNOPSIS    [Toc]    [Back]

     look [-df] [-t termchar] string [file ...]

DESCRIPTION    [Toc]    [Back]

     The look utility displays any lines in file which contain string as a
     prefix.  As look performs a binary search, the lines in file must be
     sorted.

     If file is not specified, the file /usr/share/dict/words is used, only
     alphanumeric characters are compared and the case of alphabetic characters
 is ignored.

     Options:

     -d      Dictionary character set and order, i.e. only alphanumeric characters
 are compared.

     -f      Ignore the case of alphabetic characters.

     -t      Specify a string termination character, i.e. only the characters
	     in string up to and including the first occurrence of termchar
	     are compared.

     The look utility exits 0 if one or more lines were found and displayed, 1
     if no lines were found, and >1 if an error occurred.

FILES    [Toc]    [Back]

     /usr/share/dict/words  the dictionary

SEE ALSO    [Toc]    [Back]

      
      
     grep(1), sort(1)

COMPATIBILITY    [Toc]    [Back]

     The original manual page stated that tabs and blank characters participated
 in comparisons when the -d option was specified.  This was incorrect
 and the current man page matches the historic implementation.

HISTORY    [Toc]    [Back]

     Look appeared in Version 7 AT&T UNIX.


FreeBSD 5.2.1			 June 14, 1993			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
XmTextFindStringWcs IRIX A Text function that finds the beginning position of a wide character text string
XmTextFindStringWcs Tru64 A Text function that finds the beginning position of a wide character text string
XmTextFindStringWcs HP-UX A Text function that finds the beginning position of a wide character text string
XmTextFindString Tru64 A Text function that finds the beginning position of a text string
XmTextFindString HP-UX A Text function that finds the beginning position of a text string
XmTextFindString IRIX A Text function that finds the beginning position of a text string
head OpenBSD display first few lines of files
head FreeBSD display first lines of a file
ex Tru64 Edits lines in a file interactively, with screen display.
DXmCSTextNumLines Tru64 Retrieves (returns) the number of visible lines in the compound string text widget.
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service