Search Results

Search: Posts Made By: kayakj
28,051
Posted By pamu
$ awk 'NR>1{a+=$NF; max=max>$NF?max:$NF; ...
$ awk 'NR>1{a+=$NF;
max=max>$NF?max:$NF;
min=min>$NF||!min?$NF:min}
END{print a/(NR-1),max,min}' file

0.0113093 0.01961 0.003118
28,051
Posted By RudiC
Well, you're on the right track, just need to get...
Well, you're on the right track, just need to get your ducks in a row. Look at this an adapt to your needs:awk 'NR==1 {max=0;min=1}
NR>1 {sum+=$6
if (min>$6) min=$6...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy