Hi,

I have this belowmentioned file:

col1 col2
10 50
20 60
30 70
40 80

I have to take the O/P as

col1 col2 col3
10 50 60
20 60 80
30 70 100
40 80 120

Using awk how can i get the above output as the col3 is the sum of col1 and col2.

Thanks in advance.
Mike

Recommended Answers

All 3 Replies

cool forum rubbish ppl..........

Do you want to learn, or just sponge off everyone for the rest of your life?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.