Skip to content

Instantly share code, notes, and snippets.

@wizardjedi
Created February 10, 2015 18:16
Show Gist options
  • Save wizardjedi/0a6f0725a210c175e4ba to your computer and use it in GitHub Desktop.
Save wizardjedi/0a6f0725a210c175e4ba to your computer and use it in GitHub Desktop.
AWK processing
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