Created
February 10, 2015 18:16
-
-
Save wizardjedi/0a6f0725a210c175e4ba to your computer and use it in GitHub Desktop.
AWK processing
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
BEGIN { | |
delivered=0; | |
} | |
{ | |
if (delivered>19 && int($3)>0) { | |
print $2 ";" $3 | |
delivered = 0; | |
} else { | |
print $1 ";" $3 | |
if (int($3) > 0) { | |
delivered++; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment