Hi Grant,
Thank you very much for your quick response and help.
The script does run but there seems to be some problem with the sorting ie the result should be
Top 1 - 32 - 3
Top 2 - 10 - 2
Top 3 - 14 - 1
as 10 occurs 2 times and 14 and 16 occur only once each.
Top 1 - 32 - 3
Top 2 - 16 - 1...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.