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 -->
  #3 (permalink)  
Old 01-03-2009
2k7.vipin 2k7.vipin is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 5
Try this
cat filename | cut -f2 -d " " | sort -nr | head -1
This is for maximum value -f2 is here for 2nd column for eg
And
cat filename | cut -f2 -d " " | sort -nr | tail -1

For minimum value