1

Help with ask adding columns

view story
linux-howto

http://www.unix.com – Hello, I am using AWK in UBUNTU 12.04. I have a dataset as follows: Code: 1 2 12 1 4 1 4 1 7 9 4 6 1 2 4 5 7 8 45 7 4 5 7 5 What I want to do is to add the values of some columns to each other and print it in the same file as the new column while omitting the previous two columns to have output as follows as an example: 1+4+4=9 2+1+6=9 So: Code: 9 9 12 1 4 1 7 9 53 14 4 5 7 8 4 5 thank you very much (HowTos)