chlfc
Programmer
- Mar 21, 2008
- 6
Hey guys, I'm new to awk, basically I have an input file, two columns, first I want to ignore rows with the first column that start with a certain string, and with the rest, I want to find the average. How would I do this?
e.g
8113442352 56
8325423535 99
8114525445 80
4526693345 97
4526426535 87
e.g. I want to ignore the rows that start with 811, and find the average of the second column of the others only (the sum of all the others then divide by the number of rows that it added up)
thanks
e.g
8113442352 56
8325423535 99
8114525445 80
4526693345 97
4526426535 87
e.g. I want to ignore the rows that start with 811, and find the average of the second column of the others only (the sum of all the others then divide by the number of rows that it added up)
thanks