home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / question / 14796 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.7 KB  |  61 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!dman
  3. From: dman@netcom.com (Dallman Ross)
  4. Subject: Re: Performing simple math on a numeric file from csh
  5. Message-ID: <1992Dec18.120921.21292@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. X-Newsreader: TIN [version 1.1 PL7]
  8. References: <1992Dec18.041438.17513@Princeton.EDU>
  9. Date: Fri, 18 Dec 1992 12:09:21 GMT
  10. Lines: 49
  11.  
  12. Barbara Vaughan (bvaughan@sheps.Princeton.EDU) wrote:
  13. : This is your third whining plea; it doesn't include the problem, which I
  14. : vaguely remember. . . .
  15.  
  16. Oh, heaven forefend, I did not intend to whine. :-)  Thanks for your hints,
  17. in any event.  Re. the problem, I thought it would beg the question to
  18. re-post the problem one day later; I figured the bandwidth would be too
  19. much, especially when folks could just type 0 (in my reader, anyway) to
  20. get to the original article.  Frankly, before I proceeded, I thought
  21. about what would offend me more: re-posting the problem, or just sup-
  22. plementing it with new information.  After some deliberation, I decided
  23. it would be much less "whiney" to do the latter.  Sorry you disagree.
  24.  
  25. :         What do you want us to do?  Write your program for you?
  26. :
  27. : 1) This can easily be done with awk
  28.  
  29. Yes, thanks, that much I am aware of, which is why I suggested awk in
  30. the problem.  Actually, someone a few hours ago was kind enough to
  31. mail me about 8 lines of script that has reduced my task to less than
  32. half of what it was.  That is, what he sent showed me how to approach
  33. the math formulas of awk, and applied them to this situation -- which 
  34. is what I most needed.  I'm very grateful.
  35.  
  36. 2) awk can be learned in no time using just the man pages.  I know, that's
  37. : how I learned it. I never heard of awk six months ago.
  38.  
  39. I do envy you your sagacity.  I posted after spending about 1.5 hours
  40. poring over the man pages and 6 enigmatic pages in a Unix book I have.
  41. Couldn't make hide nor hare of those man pages -- at least insofar as
  42. doing math.
  43.  
  44. Your hints 3) through 5) were somewhat helpful, thanks.  Sorry I struck
  45. a nerve.
  46.  
  47. : 6) Spend the time you spend begging on the net reading your manual.
  48.  
  49. I tried.  Begging worked out better.  Thanks.
  50.  
  51. Anyway, this is really just to say thanks to 2 or 3 who mailed me; I
  52. got enough to take it from here on my own.  That is, unless someone
  53. wants to write my program for me.  :^)
  54.  
  55. --
  56.  __D_a l_l m a_n  _ R o_s s _ |dman@netcom.com  /or/  |"You sound like a man|
  57.  l  \\ l\\   /l  /\\  l\\   l |dross@well.sf.ca.us    |with a rubber nose." |
  58.  l   >)l \\ /ll /  \\ l \\  l |vox/fax: 1.510.645.1883| -- One-Lung Bill    |
  59.  l  // l  \X ll/--- \\l  \\ l |350 Perkins St., #108  |     Remmer (deceased)
  60. _l//______________________\\l_|Oakland,_CA__94610-3422|_____________________|_
  61.