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 -->
  #1 (permalink)  
Old 01-03-2009
ashyala ashyala is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 2
Need to find the mimimum & maximum

Hi,

I've got a file with a list of values. I need to find the minimum & maximum number a particular column in that file.
For example, the file can look like,

1 2 3 45 32
2 3 5 36 87
5 8 3 96 23
8 9 6 24 56

So, in the above list, I need to find out the minimum & maximum from the numbers in the 4th Column & 5th Column.

Note: The original file contains more than 1000 lines.

Regards
Ashok Y