awk

  1. Nod

    Calculating multiple columns via awk script

    If you have a file with numerical columns, and need a total of each column, it would be easy to do the calculation with awk. Given the input file with contents: server1 2 4 5 2 1 5 server2 4 5 6 7 2 7 Execute the command like this: cat <filename> | addco.sh you'll get the following...
Top
Sign up to the MyBroadband newsletter
X