Search Results

Search: Posts Made By: pk_eee
10,736
Posted By pk_eee
Thanks...This works awk 'NR==1{k=0;Sum=0}{print...
Thanks...This works
awk 'NR==1{k=0;Sum=0}{print $1; k=k+1; Sum=Sum+$1}END{print "Raws=" k " AVG.= "Sum/k}' input File

But what iam looking for is
Output

<Name of the service> <AverageValue>...
10,736
Posted By pk_eee
Calculating the Number of Rows and Average
Hi All

I like to know how can we calculate the number of rows and the average of the values present in the file. I will not know what will be the rowcount, which will be dynamic in nature of the...
Showing results 1 to 2 of 2

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