"Object_Type" "710" "30" "14" "Partner" "Rpt" "Cool" "0ICPRP900" "Des_Space" "HBBREX" "soon_Type" "FY28" "Jan" "50" "USD_US" #Mi #Mi #Mi 0.006641 0 0 0 0 0 0 0 0 0
"Object_Type" "710" "30" "14" "Partner" "Rpt" "Cool" "0ICPRP 900" "Des_Space" "HBBREX" "soon_Type" "FY28" "Jan" "50" "USD_US" #Mi #Mi #Mi 0.01 0 0 0 0 0 0 0 0 0
"Object_Type" "710" "30" "14" "Partner" "Rpt" "Cool" "0ICPRP A&B_900" "Des_Space" "HBBREX" "soon_Type" "FY28" "Jan" "50" "USD_US" #Mi #Mi #Mi 0.641 0 0 0 0 0 0 0 0 0
Looking for output line:
0ICPRP900 0.006641
0ICPRP 900 0.01
0ICPRP A&B_900 0.641
I have tried below command and it's printed column 8 (column not printed after have space special char )
awk '{a[$8]+=$17+$18+$19+$20+$21+$22+$23+$24+$25+$26+$27+$28}END{for (i in a)
print i,bc a[i]}' File.txt
Output:
"0ICPRP900" 0.006641
"0ICPRP 0.01
"0ICPRP 0.641
Any suggestions how to get unique column8 (column8 with in "") with sum of column 16 to Column 28
