Search Results

Search: Posts Made By: jayapal
7,156
Posted By jayapal
seems there is a type in frankilins reply
awk -F, '
$4>0{
split($2,s," ")
sub("\"","",s[1])
e=s[1]
a[e]+=$4
b[e]++
}
END{
for(i in a){
print "Average for " i " = " a[i]/b[i]
}
}' file
Showing results 1 to 1 of 1

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