I want to process some log file whose format is like:
<itemA> <num>
<itemB> <num>
<itemC> <num>
I want to get a summary that contains the following information
for each item I want to know the range of the <num> field and the average of <num>
I agree with Seth, and prefer his answer. Here is a manual solution in Awk, for learning purposes: