Shell exercise -16

Question requirements Count the number of numbers that appear in each line of the document a.txt and calculate how many numbers appear in the entire document. For example, the content of a.txt is a

Shell script 8-19

Common logical statements

1, for statement:

for variable in list; do
   Loop
done

for((初始语句; 判断语句; 值变化语句)); do
   Loop
done

case statement:

2, case variable in
PAT1)