### AWK and SED Tips and tricks ## AWK # Calculate total or average ```sh awk '{sum+=$1; n++} END {print sum / n}' ```