I am Having a file containing few column of records like wise:
|830001|+10000|-9000.00
|830002|+100|-900.00
|830003|+12|-90.00
|830004|+0.00|+0.00
|830002|+100|-900.00
|830003|+12|-90.00
|830004|+0.00|+0.00
I need to sum the values using Sort Utility between 2nd and 3rd pipe delimeter(like 10000+100+12+0),also record after 3rd pipe(-9000-900-90+0) and move them into another ourput file and display the total value as
Total 1:sum of reocrds between 2nd and 3rd pipe delimeter
Total 2:sum of records after 3rd Pipe delimeter
Please Help.