[ad_1]
awk '{
a[$1]+=$2+$3
}
END {
for (i in a)
print i, a[i]
}' input.txt > op.txt
[ad_2]
solved parse file in perl using awk commands
[ad_1]
awk '{
a[$1]+=$2+$3
}
END {
for (i in a)
print i, a[i]
}' input.txt > op.txt
[ad_2]
solved parse file in perl using awk commands