Brojenje linija po nekom kljueu
Broje se linije koji imaju istu prvu rijee
#array indexed using the first field
{ ++a[$1]}
#note output will be in undefined order
END {
for (i in a)
print a[i], "lines start with", i
}
Previous slide
Next slide
Back to first slide
View graphic version