Last active
May 16, 2019 13:21
-
-
Save dlozeve/67861dcafc6276296da4381c1ec10642 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/awk -f | |
BEGIN { | |
FS = "\t"; | |
} | |
$2 ~ "^" ARGV[2] "$" { | |
count++; | |
if (count > 10) | |
exit; | |
total += $3; | |
print $1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment