in reply to Re: Re: Counting lines by content
in thread Counting lines by content
I assume this is what you meant no duplicates in the third field.perl -F: -e 'END { print "$_ $c{$_}\n" for keys %c }' \ -ane '$c{$F[1]}++ unless $d{"@F[1,2]"}++'
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Counting lines by content
by willa (Acolyte) on Oct 09, 2002 at 13:03 UTC |