With the exact same data and command I receive the following:
Code:
$ awk '{if(min==""){min=max=$1}; if($1>max) {max=$1}; if($1<min) {min=$1}; total+=$1; count+=1} END {print total/count, max, min}' file
0.25 1 0
So my questions would be to you:
1. Confirm that the data file has exactly those lines and no blanks?
2. What does awk point to on your computer? (for me it is gawk)