Κυριακή 6 Φεβρουαρίου 2011

2.07 Τι κάνει ο παρακάτω κώδικας ;

{
if(NF>0) {
split($2,imer,"-")
if(imer[2]<=6 && imer[2]>=1) {
pl[$1]++
split ($3, OR1,":")
split ($4, OR2,":")
L1=OR1[1]*60+OR1[2]
L2=OR2[1]*60+OR2[2]
L=(L2-L1)
XX[$1]+=L
}
if($7>0) TT[$1]++
if($8>0) MM[$1]++
}
}

END{
print
print "Αποτελέσματα "
print "-------------"
for(x in XX) print x, "sindethike :",pl[x], " xronos :",XX[x], " e-mail:",MM[x], " www :",TT[x]
}


Δεν υπάρχουν σχόλια:

Δημοσίευση σχολίου