Summing only on particular field and getting that value only
Posted: Thu Oct 13, 2011 12:23 pm
Hi,
Is it possible to sum one particular field in a file and get that value alone in a output file and assuming that I don't have any field that has the same value throughout the file in input...
Example: input
110
220
330
440
I want to sum from col 2 to 3 and get the output as 100 in the output file..
Output file should be
100
Is it possible to sum one particular field in a file and get that value alone in a output file and assuming that I don't have any field that has the same value throughout the file in input...
Example: input
110
220
330
440
I want to sum from col 2 to 3 and get the output as 100 in the output file..
Output file should be
100