Re: [dwm] [OT] Suckless way of doing spreadsheet

2009-05-02 Thread Amit Uttamchandani
On Sat, 2 May 2009 00:00:15 +0200 pmarin pacog...@gmail.com wrote: Do you want to calculate only the total? Use hard tabs \t to separate columns My version: BEGIN { FS = \t+ OFS= \t } $2 ~ /[0-9]+\.?[0-9]*/ { total[car] += $2 total[pro] += $3 total[fat] += $4 } END{

Re: [dwm] [OT] Suckless way of doing spreadsheet

2009-05-02 Thread Amit Uttamchandani
On Fri, 1 May 2009 21:43:49 +0200 Antoni Grzymala ant...@chopin.edu.pl wrote: How about sc[1], a ncurses based spreadsheet? [1] http://ibiblio.org/pub/Linux/apps/financial/spreadsheet/ Thanks for the tip!

Re: [dwm] [OT] Suckless way of doing spreadsheet

2009-05-02 Thread pmarin
Better if you remove que hash table: BEGIN { FS = \t+ OFS= \t } $2 ~ /[0-9]+\.?[0-9]*/ { car += $2 pro += $3 fat += $4 } END{ print Totals, car, pro, fat } On Sat, May 2, 2009 at 8:36 AM, Amit Uttamchandani atu13...@csun.edu wrote: On Sat, 2 May 2009 00:00:15 +0200

Re: [dwm] [OT] Suckless way of doing spreadsheet

2009-05-02 Thread Charlie Kester
On Fri 01 May 2009 at 23:43:25 PDT Amit Uttamchandani wrote: On Fri, 1 May 2009 21:43:49 +0200 Antoni Grzymala ant...@chopin.edu.pl wrote: How about sc[1], a ncurses based spreadsheet? [1] http://ibiblio.org/pub/Linux/apps/financial/spreadsheet/ Thanks for the tip! Leaving aside the

Re: [dwm] [OT] Suckless way of doing spreadsheet

2009-05-02 Thread Charlie Kester
On Sat 02 May 2009 at 10:32:13 PDT Charlie Kester wrote: There's also an slang-based version of the original sc: http://linux.maruhn.com/sec/slsc.html Here's a page with downloads links for slsc that actually work: http://packages.ubuntu.com/dapper/math/slsc

Re: [dwm] [OT] Suckless way of doing spreadsheet

2009-05-02 Thread Kurt H Maier
On Sat, May 2, 2009 at 12:57 PM, Charlie Kester corky1...@comcast.net wrote: On Sat 02 May 2009 at 10:32:13 PDT Charlie Kester wrote: There's also an slang-based version of the original sc: http://linux.maruhn.com/sec/slsc.html Here's a page with downloads links for slsc that actually work:

Re: [dwm] [OT] Suckless way of doing spreadsheet

2009-05-01 Thread Antoni Grzymala
Amit Uttamchandani dixit (2009-05-01, 12:39): I don't have a powerful machine so using OpenOffice was out of the question. I was happily using gnumeric for sometime but this bug just killed it for me: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526379 I know this will probably be

Re: [dwm] [OT] Suckless way of doing spreadsheet

2009-05-01 Thread pmarin
Do you want to calculate only the total? Use hard tabs \t to separate columns My version: BEGIN { FS = \t+ OFS= \t } $2 ~ /[0-9]+\.?[0-9]*/ { total[car] += $2 total[pro] += $3 total[fat] += $4 } END{ print Totals, total[car], total[pro], total[fat] On Fri, May 1, 2009 at 9:39 PM,

Re: [dwm] [OT] Suckless way of doing spreadsheet

2009-05-01 Thread pmarin
Do you want to calculate only the total? Use hard tabs \t to separate columns My version: BEGIN { FS = \t+ OFS= \t+ } $2 ~ /[0-9]+\.?[0-9]*/ { total[car] += $2 total[pro] += $3 total[fat] += $4 } END{ print Totals, total[car], total[pro], total[fat] } On Fri, May 1, 2009 at