Hi All,
I have an input file in the following format:
Input File:
5 apple
10 mango
10 orange
7 cherry
15 apple
8 cherry
9 mango
12 orange
10 apple
101 mango
40 cherry
11 orange
And I would like to get the output as below:
Output File:
Output File:
Name Max Min
apple 15 5
mango 101 9
orange 12 10
cherry 40 7
Find the maximum and minimum of each fruit category with an awk script. Could you please help me to sort out this...
Thanks in advance
Naz
I have an input file in the following format:
Input File:
5 apple
10 mango
10 orange
7 cherry
15 apple
8 cherry
9 mango
12 orange
10 apple
101 mango
40 cherry
11 orange
And I would like to get the output as below:
Output File:
Output File:
Name Max Min
apple 15 5
mango 101 9
orange 12 10
cherry 40 7
Find the maximum and minimum of each fruit category with an awk script. Could you please help me to sort out this...
Thanks in advance
Naz