BUSY HOUR =17
i am calculating on the basis of second field which is accrq and the highest value is 41259 against that walue the hour is 17.
so kindly tell me the script which can give me the output
hi
thanx for ur support but when i am excuting ur statement it is not giving me any value.
the output will come like
BUSY HOUR=
so please kindly help me in this regard
Just to inform you that i have tried your last given command and again its not returning any value.
Just displaying Busy Hour.
and regarding your previous command
echo "Busy Hour = "`sort -k2nr file | sed q |awk '{print $1}'`
when i am executing this one it will give me the wrong value instead of giving me the max value from 2nd col and should give the left most col value.
I guess all the above solutions should work without any issues. I have tested mine and it works fine as well. Seems like it can be field seperator issue in the file which you are trying.
hi
thanx alot its working.
please if you dont mind can you explain me the last statement i cannot able to understand what is happening inside the awk like next,NR etc...
reagards,
shary