I am trying to write a perl script that prints out the lowest and highest values of Column3. But since S12 has value 1 appear more often than S11 in column3 based on the value in column1, I need the script to give me as a result the line of S12 as the lowest column3 value (2925 S12 1 ). Is there an easy way to do this? Please keep the script as simple as possible so that I can actually follow what you are doing and learn from it. Thanks for your help!Column1 Column2 Column3 2870 S11 1 574 S11 2 317 S11 3 31 S11 4 1 S11 6 1 S11 7 2925 S12 1 8 S12 5 1 S12 6 1 S12 9
In reply to max and min values in 3-column file by perldummie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |