ftp.nice.ch/pub/next/unix/text/define.README

This is the README for define.2.0.N.bs.tar.gz [Download] [Browse] [Up]

//
// Define: a simple dictionary lookup program
// for the Unix shell on the NeXT
//

 I wrote this one slow afternoon (as if there are any slow afternoons
Cornell), using the examples from the man notes on webster's dictionary.
It does not have many frills, but it should serve as a good example
of how to access the dictionary and thesaurus from the shell interface.

 I've included binaries for both System 1.0 and 2.x. Which is which
should be obvious.
 To compile the program from the source, you will need to obtain
libtext.a and libbtree.a from NeXT Tech Support. Don't ask me for them,
please..... 

	cc -O -o define define.c -ltext -lbtree -lsys_s


 The program is pretty much self explanatory. The command to call it is

      csh>   define word

  It will print out the definition of word on the standard output. You can
redirect the output using the standard redirection command (>). There are
two options:

     csh>  define -t word
     csh>  define +t word

  Note, these two options cannot be used together. The -t option will define
word using only the thesaurus. The +t option will define it using BOTH the
dictionary and thesaurus.

  The format of webster's dictionary is a bit strange if you are using a 
shell window. If the word is a compound word, just run them together, 
for example:
     csh> define hurricanelamp
will define "hurricane lamp." 

  All bugs are my own. Send you comments, mail, money (if you feel like
it, I would be very grateful) to:

    Jiro Nakamura  |
    ----------------   
	E-mail:   jiro@shaman.com
	
	Snail-mail:	Jiro Nakamura
			c/o The Reppy's
			493 Ellis Hollow Creek Rd.
			Ithaca, NY 14850

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.