I run the following command:
grep -o "[0-9] errors" verification_report_3.txt | awk '{print $1}'
and I get the following result:
1
4
0
8
I'd like to add each of the numbers up to a running count variable. Is there a magic one liner someone can help me build?