Created
February 14, 2019 13:24
-
-
Save matlink/7aea88b27ad50504f4aa4bcc6c5a36e1 to your computer and use it in GitHub Desktop.
print SUM until threshold
This file contains 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
awk '{ if ($1<=1e7){SUM+=$3} else{print SUM; exit}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment