I want to count the packets of an interface like ix1 . The result of netstat -I ix1 -w1 is something like this .
input (ix1) output
packets errs idrops bytes packets errs bytes colls
0 0 0 0 0 0 0 0
1042563 0 0 794182232 0 0 0 0
1537437 0 0 1177837768 0 0 0 0
0 0 0 0 0 0 0 0
who can I get sum of the fist column ? I tried with grep but it is not handy would you please help how to do it ? with grep or cut or ....?