LOOKUP(1) UNIX Programmer's Manual LOOKUP(1)
April 22nd, 1994
lookup - interactive file search and display
lookup [ args ] [ file ... ]
Lookup allows the quick interactive search of text files. It
supports ASCII, JIS-ROMAN, and Japanese EUC Packed formated
text, and has an integrated romaji -> kana converter.
OVERVIEW OF MAJOR FEATURES
The following just mentions some major features to whet your
appetite to actually read the whole manual (-:
- Romaji-to-Kana Converter
- Lookup can convert romaji to kana for you, even ``on the fly''
as you type.
- Searches can be a bit ``vague'' or ``fuzzy'' , so that you'll be able
to find `` '' even if you try to search for
`` '' (the proper yomikata being `` '').
- Regular Expressions
- Uses the powerful and expressive regular expression
for searching. One can easily specify complex searches that affect ``I want
lines that look like such-and-such, but not like this-and-that, but that
also have this particular characteristic....''
- You can have lookup not list certain lines that would
otherwise match your search, yet can optionally save them
for quick review. For example, you could have all name-
only entries from edict filtered from normal output.
- Automatic Modifications
- Similarly, you can do a standard search-and-replace on lines just
before they print, perhaps to remove information you don't care to see on
most searches. For example, if you're generally not interested in
kanjidic's info on Chinese readings, you can have them removed
from lines before printing.
- Smart Word-Preference Mode
- You can have lookup list only entries with whole
words that match your search (as opposed to an embedded
match, such as finding ``the'' inside ``them''), but if no whole-word
matches exist, will go ahead and list any entry that matches the search.
- Handy Features
- Other handy features include a dynamically settable and parameterized
prompt, automatic highlighting of that part of the line that matches your
search, an output pager, readline-like input with horizontal scrolling for
long input lines, a ``.lookup'' startup file, automated programmability,
and much more. Read on!
Lookup makes liberal use of regular expressions
(or regex for short) in controlling various aspects of the
searches. If you are not familiar with the important concepts of regexes,
read the tutorial appendix of this manual before continuing.
JAPANESE CHARACTER ENCODING METHODS
Internally, lookup works with Japanese packed-format EUC, and
all files loaded must be encoded similarly. If you have files
encoded in JIS or Shift-JIS, you must first convert them to
EUC before loading (see the INFO section for programs that can
Interactive input and output encoding, however, may be selected via the
-jis, -sjis, and -euc invocation flags (default is -euc), or by various
commands to the program (described later).
Comments appreciated [Return to Description of the Lookup program]
[Return to Main Page]
[Jump to Index]
(this page's master source last modified 15 years, 8 months ago)