Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BEGIN {FS="|"; num="10000027"}
- {
- if ($4==num) {a[$5]++; b[$5]+=$3}
- }
- END {
- for (i in a) {
- if (a[i]>max) {
- max=a[i]
- c=i;
- }
- }
- for (i in b) {
- if (b[i]>max2) {
- max2=b[i]
- c2=i;
- }
- }
- print "Caller: "c" called "num" "max" times."
- print "Caller: "c2" called "num" for "max2" seconds."
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement