1

How To Sum Values Inside One Line In UNIX.?

view story
linux-howto

http://www.unix.com – Dears, Good Day ! Plz; i want to sum-up two consecutive values inside one row, and put the summation in a new column. here the input: Code: 1 2 4 5 6 7 the output should be: 1 2 3 4 5 9 6 7 13 If someone can help me to solve my issue ! thx anyway. Moderator's Comments: Video tutorial on how to use code tags in The UNIX and Linux Forums. (HowTos)