Skip to content

Instantly share code, notes, and snippets.

@halm
Created September 19, 2013 01:05
Show Gist options
  • Select an option

  • Save halm/6617902 to your computer and use it in GitHub Desktop.

Select an option

Save halm/6617902 to your computer and use it in GitHub Desktop.
one-liner series: Sum of Field 21.
awk '{if (NF == 21) sum += $21} END { print sum }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment