Avg is a project mainly written in C, it's free.
Compute averages from the command line
Computes cumulative average or a simple moving average.
Simple moving average computes a cumulative average for a window of input, and the final result is the cumulative average of the windowed averages.