Hello all,

Further to my earlier message about sending little snippets of code for other 
people's consideration, here's the script I wrote to calculate math 
statements across a group of values.  I did it because, as you probably have 
experienced, you do a "ps" or a "df" command, and want to see the sum or 
average process or filesystem size, respectively.  Well, this script allows 
you to perform basic mathematical operations against a group of values 
(either on STDIN or as files on the command-line) and get a result.

It's attached here, but if the mailing list chops it off, you can download it 
at http://nachbaur.com/resources/source/misc/gm-1.03

-- 
/* Michael A. Nachbaur <[EMAIL PROTECTED]>
 * http://nachbaur.com/pgpkey.asc
 */

"The dew," he observed, "has clearly fallen with a particularly sickening thud 
this morning."

Attachment: gm
Description: Perl program

Reply via email to