Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Awk 0.25 KB | None | 0 0
  1. #!/usr/bin/awk -f
  2.  
  3. BEGIN { MINVALUE = 50; MAXVALUE = 60 }
  4. {
  5.     split($0,value," ")
  6.     for (i in value) {
  7.         split(value[i], cents, ".")
  8.         centCount[cents[2]]++
  9.     }
  10. }
  11. END { for (i = MINVALUE; i <= MAXVALUE; i++) print i,centCount[i] }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement