$ awk -F";" '{ print $18 }' TOP500_200806.csv | sort | uniq -c | sort -rn

    378 Linux
     32 CNK/SLES 9
     23 AIX
     14 SLES10 + SGI ProPack 5
      7 SuSE Linux Enterprise Server 9
      7 SUSE Linux Enterprise Server 10
      6 RedHat Enterprise 4
      6 CNL
      5 Redhat Linux
      4 UNICOS/Linux
      3 Windows HPC 2008
      3 UNICOS/SUSE Linux
      2 Windows Compute Cluster Server 2003
      2 UNICOS
      2 SUSE Linux
      2 MacOS X
      2 CentOS
      1 UNICOS/lc
      1 Super-UX
      1 Operating System

Hozzászólások


awk -F";" '{ 
            sum[$18]++ ;
           }
       END {
            for( i in sum) { 
               print sum[i], i;
            }
           }' TOP500_200806.csv | sort -rn

mondtam én, h tudok awkban programozni? :) majd megtanulom.
btw, ez subjectnek hosszú lett volna ;-)

ja és az enyémnek szebb az outputja ;-)) mint ez:

$ awk -F";" ' 
>       NR>1 { 
>             sum[$18]++ ;
>            }
>       END  {
>             for( i in sum) { 
>                print sum[i], i;
>             }
>            }' TOP500_200806.csv | sort -rn
378 Linux
32 CNK/SLES 9
23 AIX
14 SLES10 + SGI ProPack 5
7 SuSE Linux Enterprise Server 9
7 SUSE Linux Enterprise Server 10
6 RedHat Enterprise 4
6 CNL
5 Redhat Linux
4 UNICOS/Linux
3 Windows HPC 2008
3 UNICOS/SUSE Linux
2 Windows Compute Cluster Server 2003
2 UNICOS
2 SUSE Linux
2 MacOS X
2 CentOS
1 UNICOS/lc
1 Super-UX

> 23 AIX

ott 'vagyunk' am a 3. helyen !!

igen, szép az AIX-től, mondjuk ez azt jelenti IBM jobban forog ezen a területen.
ámbár ha meg azt nézzük, hogy "Linuxtól még nem elvakult Unixos ember" ;-] akkor zavaróan sok itt a Linux :-)
viszont azt érdekes lenne tudni, h a 378 Linux az milyen lehet, illetve ha:
"a negyedik a szintén új, AMD Opteron processzorokra épülő Sun SunBlade x6420 Ranger (326 teraflops)" //indexről
akkor miért nem látunk Solaris-t kiírva, de más UNIX se hemzseg, pl HP nem gyárt supercomputert?