[ale] Shell script

Wandered Inn esoteric at atlnet.com
Wed Sep 27 20:49:51 EDT 2000


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.





More information about the Ale mailing list