Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revision Both sides next revision
awk [2014/04/04 16:14]
127.0.0.1 external edit
awk [2015/08/18 13:54]
steve
Line 13: Line 13:
 </​code>​ </​code>​
  
 +== Print a total of a column of numbers in a file ==
  
 +<​code>​
 +awk '{ sum += $1 } END { print sum }' filename
 +</​code>​