#!/bin/bash

awk -F[1-5] 'BEGIN{t=0}{cn=NF-1; t=cn+t; printf "line%s number: %s\n", NR , cn } END{printf "sum is %s",t}' nowcoder.txt