Code Samples : Bash : averaging inputs