Adding up numbers in a file
- From: adamsalisbury@xxxxxxxxx
- Date: 15 Feb 2006 07:58:53 -0800
Hi,
In a shell how would I add up a set of numbers in a file.
For example if I had a file holding...
filename
------------
10
15
7
2
How would I derive the total of those numbers, 34?
Thanks
Adam.
.
- Follow-Ups:
- Re: Adding up numbers in a file
- From: Bill Marcum
- Re: Adding up numbers in a file
- From: Chris F.A. Johnson
- Re: Adding up numbers in a file
- Prev by Date: Re: deleting a penultimate line from the standard output
- Next by Date: Re: deleting a penultimate line from the standard output
- Previous by thread: deleting a penultimate line from the standard output
- Next by thread: Re: Adding up numbers in a file
- Index(es):