GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LOOK(1) FreeBSD General Commands Manual LOOK(1)

look - find lines in a sorted list

look [ -dfnixtc ] [ string ] [ file ]

Look consults a sorted file and prints all lines that begin with string. It uses binary search.

The following options are recognized. Options dfnt affect comparisons as in sort(1).

Interactive. There is no string argument; instead look takes lines from the standard input as strings to be looked up.
Exact. Print only lines of the file whose key matches string exactly.
`Directory' order: only letters, digits, tabs and blanks participate in comparisons.
Fold. Upper case letters compare equal to lower case.
Numeric comparison with initial string of digits, optional minus sign, and optional decimal point.
Character c terminates the sort key in the file. By default, tab terminates the key. If c is missing the entire line comprises the key.

If no file is specified, /lib/words is assumed, with collating sequence df.

/lib/words

/src/cmd/look.c

sort(1),

The exit status is ``not found'' if no match is found, and ``no dictionary'' if file or the default dictionary cannot be opened.


Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.