total - simple calculator
of columns totals

`Total' is a perl script, which copies stdin to stdout appending a separator and the sums of the columns. It attempts to automatically determine width of text and positions of columns.

Here is an example of use:

bash$ ls -l *.C | total
 1 -rw-------  1 am  wheel   592 Jul  5  1997 astrcat.C
10 -rw-------  1 am  wheel  9794 Mar 11 22:49 io.C
 3 -rw-------  1 am  wheel  2669 Nov  7 04:50 listen.C
 3 -rw-------  1 am  wheel  2163 Nov  7 04:50 memory.C
 6 -rw-------  1 am  wheel  6056 Nov 25 02:25 misc.C
 6 -rw-------  1 am  wheel  6050 Dec  5 15:15 pipes.C
 8 -rw-------  1 am  wheel  7682 Nov  7 04:50 proto.C
 4 -rw-------  1 am  wheel  3431 Dec  5 15:15 qp.C
 6 -rw-------  1 am  wheel  5598 Mar  5 03:45 rdwr.C
 2 -rw-------  1 am  wheel  1889 Jun 10  1997 sepwords.C
10 -rw-------  1 am  wheel  9296 Jan  3 21:29 sql.C
 2 -rw-------  1 am  wheel  1256 Nov 12 02:08 strchop.C
 1 -rw-------  1 am  wheel   887 Jun  6  1997 strnzcpy.C
 4 -rw-------  1 am  wheel  3980 May 22  1998 timerqueue.C
----------------------------------------------------------
66            14           61343     130
bash$

Get `total' here. It's freeware, writen in some spare minutes by Andrew Maltsev at January 1997.


AM'SOFT home page Copyright © 2024 by Andrew Maltsev