#!/bin/bash echo "scale=3;`cat nowcoder.txt | awk 'BEGIN{getline;sum=0;}{sum+=$1;}END{print sum}'` / $[`wc -l nowcoder.txt | awk '{print $1}'` - 1]" | bc