dict – dictionary browser|
dict [ –k ] [ –d dictname ] [ –c command ] [ pattern ]|
Dict is a dictionary browser. If a pattern is given on the command
line, dict prints all matching entries; otherwise it repeatedly
accepts and executes commands. The options are|
–d dictname Use the given dictionary. The default is oed, the second edition of the Oxford English Dictionary. A list of available dictionaries is printed by option –d?.
–c command Execute one command and quit. The command syntax is described below.
–k Print a pronunciation key.
/re/ Set the match set to all entries matching the regular expression re, sorted in dictionary order. Set the current entry to the first of the match set.
!re! Like /re/ but use exact matching, i.e., without case and accent folding.
n An integer n means change the current entry to the nth of the current match set.
#n The integer n is an absolute byte offset into the raw dictionary. (See the A command, below.)
addr+ After setting the match set and current entry according to addr, change the match set and current entry to be the next entry in the dictionary (not necessarily in the match set) after the current entry.
addr– Like addr+ but go to previous dictionary entry.
p,P Print the whole entry.
h,H Print only the headword(s) of the entry.
a,A Print the dictionary byte offset of the entry.
r,R Print the whole entry in raw format (without translating special characters, etc.).
Other files in /lib.
A font with wide coverage of the Unicode Standard should be used
for best results. (Try /lib/font/bit/pelm/unicode.9.font.)|
If the pattern doesn't begin with a few literal characters, matching takes a long time.
The dictionaries are not distributed outside Bell Labs.