Skip to content

Instantly share code, notes, and snippets.

@mujahidk
Created January 20, 2019 17:53
Show Gist options
  • Save mujahidk/ec11ac9e1c727a84f5fe6e1c7195543a to your computer and use it in GitHub Desktop.
Save mujahidk/ec11ac9e1c727a84f5fe6e1c7195543a to your computer and use it in GitHub Desktop.
Shell, adding column of numbers to get the total
ll | awk '{total+=$5} END{print "Total: " total}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment