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