[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: summation in dc
From: |
Michael Chastain |
Subject: |
Re: summation in dc |
Date: |
Wed, 11 Aug 2004 14:44:09 -0400 |
User-agent: |
nail 10.8 6/28/04 |
Mike Maxwell <maxwell@ldc.upenn.edu> wrote:
> A frequent task I have is to sum a series of numbers.
I don't know any standard tool that does this.
If you are fixated on doing it with dc, then you might try playing
with the 'z' command, with macros, and with registers.
Personally I would do this with a small Perl script.
Awk would be a fine language for this too.
Michael C