[root@localhost ~]# cat a.txt 

1 2 3

4 5 6

7 8 9


[root@localhost ~]# cat a.txt |awk -F " " '{print $1+$2+$3}'

6

15

24