rwxrob-dot/scripts/countincol
Rob Muhlestein 2ea0289e9f Rebase
2022-02-09 02:29:05 -05:00

9 lines
135 B
Bash
Executable File

#!/usr/bin/env bash
declare -i total
while IFS= read -r line; do
num=${line#* }
num=${num%% *}
((total+=num))
done
echo "$total"