[Radiance-general] total -p and zeroes

Axel Jacobs jacobs.axel at gmail.com
Fri Jan 29 08:51:49 PST 2010


Dear list,

I'm trying to use total -p to multiply two rows of data like this:

$ echo -e "0 1 2 3\n2 3 4 5"
0 1 2 3
2 3 4 5

$ echo -e "0 1 2 3\n2 3 4 5" |total -p
2	3	8	15

I would expect 0 * 2 = 0 in the first column. Does the -p option not 
like zeroes? A straight-forward sum gives the expected result:

$ echo -e "0 1 2 3\n2 3 4 5" |total
2	4	6	8

Regards

Axel



More information about the Radiance-general mailing list