[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Shell script
- Subject: [ale] Shell script
- From: esoteric at atlnet.com (Wandered Inn)
- Date: Wed, 27 Sep 2000 20:49:51 -0400
How about perl? Assuming you have one entry per line:
cat fileonumbers |
perl -ne 'BEGIN { my $total=0;} {$total +=$_;}END {print $total;}'
--
Until later: Geoffrey esoteric at denali.atlnet.com
"Great spirits have always found violent opposition from mediocre minds.
The
latter cannot understand it when a man does not thoughtlessly submit to
hereditary prejudices but honestly and courageously uses his
intelligence."
- Albert Einstein
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.