Jump to content

User:Laddiebuck

From Wikipedia, the free encyclopedia

How many Fields Medals per country? Save the list to a file, then:

  cat list | awk -F'(\\(|\\))' '{print $2 ":" $4 ":" $6 ":" $8}' | tr ':' '\n' | tr '/' '\n' | egrep '[A-Za-z]' | sort | uniq -c | sort -rn

Currently:

    13 US
     8 France
     7 GB
     3 USSR (6 with Russia)
     3 Russia
     3 Japan
     2 Belgium
     1 West Germany
     1 Sweden
     1 Norway
     1 New Zealand
     1 Italy
     1 Finland