home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / sci / math / 10883 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.4 KB  |  38 lines

  1. Newsgroups: sci.math
  2. Path: sparky!uunet!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watserv1!graceland.uwaterloo.ca!shallit
  3. From: shallit@graceland.uwaterloo.ca (Jeffrey Shallit)
  4. Subject: "amslookup" shell script to search AMS database
  5. Message-ID: <BtyswE.87L@watserv1.uwaterloo.ca>
  6. Sender: news@watserv1.uwaterloo.ca
  7. Organization: University of Waterloo
  8. Date: Wed, 2 Sep 1992 19:02:37 GMT
  9. Lines: 27
  10.  
  11. I got a copy of Ken Ribet's shell script below, which he calls
  12. "amslookup", from Jerry Tunnell.  Ken told me he's posted this 
  13. to the net before, but I never saw it, so he agreed I could post
  14. it again.
  15.  
  16. Here it is:
  17.  
  18. ---------------------------------cut here-------------------------
  19. #
  20. #From ribet@math.berkeley.edu Tue Sep  1 14:31:59 1992
  21. #
  22. #I did indeed write it, and I think that I posted it to sci.math
  23. #at one point.  You're 100% welcome to spread it around.  The
  24. #"sed" part of the pipe is to get rid of control-M's that are
  25. #visible if you use "less" instead of "more".  If you really use
  26. #"more", there's no need to strip out the control-M's.
  27. #
  28. (echo ${1} | /usr/etc/mconnect -p 2050 e-math.ams.com) | sed  's/^M//' | /usr/ucb/more
  29.  
  30. --------------------cut here-------------------------------------------
  31.  
  32. This script takes as an argument a mathematician's name (such as "ribet")
  33. and returns the record stored in the AMS/CML database (with address,
  34. phone, e-mail address, etc.)  Pretty useful!  No guarantee it works
  35. everywhere, but it works on my Sun.
  36.  
  37. Jeff Shallit
  38.