I need to find the max and min of each entry in my file:
#subset of my file NEUTRON 20.900103 PION- 0.215176 PION- 22.716532 NEUTRON 8.043279 PION+ 1.374297 PION- 0.313350 PION+ 0.167848 How could I loop through the file and find the min and max for each Name when there are multiple entry names. I have used awk already to count each entry and have no repeats, but each repeat of each name contains a number with it and that number is what im trying to filter out the max and min of each entry. ex output from whole file:
Name Count Minimum Maximum -------- ----- --------- --------- KAON- 1 5.489958 5.489958 NEUTRON 2 8.043279 20.900103 PHOTON 10 0.034664 1.897264 PION- 5 0.192247 22.716532 PION+ 7 0.167848 7.631051 PROTON 1 1.160216 1.160216