Search Results

Search: Posts Made By: AriasFco
23,191
Posted By mirni
@vgersh99: you need to divide by (ARGC-1) ...
@vgersh99: you need to divide by (ARGC-1)

@AriasFco: try this:

$ awk '{
avg[$1,$2]+=$3;
i[FNR]=$1 SUBSEP $2
}
END{
for(k in i) sorted_i[j++]=k+0;
n=asort(i,sorted_i);
...
23,191
Posted By vgersh99
not tested.... awk...
not tested....
awk '{x[FNR]+=$3;next}END{for(i=1;i in x;i++) print x[i]/ARGC}' allMyFilesWildWildCard
1,262
Posted By bartus11
awk 'NF>2' data.dat
awk 'NF>2' data.dat
Showing results 1 to 3 of 3

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