The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 01-28-2008
manas_ranjan's Avatar
manas_ranjan manas_ranjan is offline
Registered User
  
 

Join Date: Jul 2007
Location: Amsterdam
Posts: 177
Please try this out..........

cat <<filename>> | sort -nr -t',' -k2 | head -1 | awk 'END{ print $1" :- is BUSY Hour"}'

Last edited by manas_ranjan; 01-28-2008 at 05:53 AM.. Reason: replace field separator from : to ,