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