Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/gawk -f
- {
- if($1 in tomb) {
- if(tomb[$1] > $2)
- tomb[$1] = $2
- }
- else {
- tomb[$1] = $2
- }
- }
- END{
- for(i in tomb){
- printf("%s %s\n",i,tomb[i])
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement