[<--] Indice [-->]

From Luca Berra <bluca@comedia.it>
Date Sat, 6 Apr 2002 01:00:48 +0200
Subject Re: [HaCkmEeTiNg] Re: Call for Papers

On Fri, Apr 05, 2002 at 04:04:05PM +0200, Franco Vite wrote:
> [root@shanti:~]$ cd /usr/share/doc
> [root@shanti:/usr/share/doc]$ ls */copyright | wc -l
>      676
> [root@shanti:/usr/share/doc]$ grep -l GPL */copyright | wc -l
>      473
> [root@shanti:/usr/share/doc]$ grep -l BSD */copyright | wc -l
>       52
> 
che palle:
rpm -qa --queryformat '%{LICENSE}:%{SIZE}\n' |awk -F: '$1 == "GPL" || $1 == "LGPL" {l["GPL"]++;s["GPL"]+=$2;next} {l["OTHER"]++;s["OTHER"]+=$2} END {for (i in l) print s[i], l[i], i}'
993217969 573 GPL
698310088 303 OTHER

(byte,numero,LICENZA)

come vedi se consideri altri parametri il rapporto cambia
poi se guardi bene cosa sono potrebbe cambiare ancora,
ma non ho voglia volevo solo scrivere una linea astrusa in awk

il discorso e' che i duri-e-puri mi son sempre stati sui coglioni......

L.

-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \
---
To unsubscribe from this list: send the line "unsubscribe hackmeeting" in
the body of a message to majordomo@kyuzz.org

[<--] Indice [-->]