Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.PCS 1/10/84; site mtgzz.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!houxm!mtuxo!mtgzz!ecl From: ecl@mtgzz.UUCP (e.c.leeper) Newsgroups: net.unix-wizards Subject: Re: Adding up columns of numbers... Message-ID: <845@mtgzz.UUCP> Date: Sat, 15-Jun-85 21:24:29 EDT Article-I.D.: mtgzz.845 Posted: Sat Jun 15 21:24:29 1985 Date-Received: Tue, 18-Jun-85 04:26:53 EDT References: <975@trwatf.UUCP> Organization: AT&T Information Systems Labs, Middletown NJ Lines: 15 Cc: ecl > Yes indeedy... here's a quick little script to get you started with > multiple columns of numbers..... > > (Followed by 35-line shell/awk script) Far too complicated! How about: echo 0 `sed -e 's/$/+/' -e 's/-+/-/'