hi,
Need expert help.
I am using nawk to process a text file and posed with the foll problem :
Have an array that typically looks like this ;
a[0]= 32
a[1]= 10
a[2]= 32
a[3]= 14
a[4]= 16
a[5]= 10
a[6] = 32
I need to count the number of times each value occurs and then
sort them in desending order.
Actually I am trying to find the highest top three values.
so the result would typically look like
Top 1 - 32 - 3
Top 2 - 10 - 2
Top 3 - 14 - 1
Please advise.
Thanks,
dvanan
Need expert help.
I am using nawk to process a text file and posed with the foll problem :
Have an array that typically looks like this ;
a[0]= 32
a[1]= 10
a[2]= 32
a[3]= 14
a[4]= 16
a[5]= 10
a[6] = 32
I need to count the number of times each value occurs and then
sort them in desending order.
Actually I am trying to find the highest top three values.
so the result would typically look like
Top 1 - 32 - 3
Top 2 - 10 - 2
Top 3 - 14 - 1
Please advise.
Thanks,
dvanan