{
if(NF>0) if($9=="stoped") user[$1]++
}
END{
for(i in user) print "Ο χρήστης : ",i," είχε ",user[i]," stoped"
}
Έξοδος προγράμματος :
Ο χρήστης : dalamitra είχε 12 stoped
Ο χρήστης : admin είχε 8 stoped
Ο χρήστης : antonis είχε 12 stoped
Ο χρήστης : george είχε 5 stoped
Ο χρήστης : makris είχε 5 stoped
Δεν υπάρχουν σχόλια:
Δημοσίευση σχολίου