I want to calculate the sum of a specific column using bash without using the print that specific column (I want to keep all the output columns of my pipeline and only sum o
awk '{sum+=$1;} END { print "Total of 1st Column:" sum }1' abc.t6RrMm
Given a file like:
12 12 12 1 1 1 2 2 1 0 1 2
Total of 1st Column is 15.
15