in reply to
Counting within an array
awk '{ print $0(++a[$0]) }'
[download]
Just kidding. Use the perl solution above instead.
Comment on
Re: Counting within an array
Download
Code
In Section
Seekers of Perl Wisdom