Created
January 20, 2019 17:53
-
-
Save mujahidk/ec11ac9e1c727a84f5fe6e1c7195543a to your computer and use it in GitHub Desktop.
Shell, adding column of numbers to get the total
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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