mirror of
https://github.com/rwxrob/dot
synced 2024-11-18 15:25:52 +00:00
9 lines
135 B
Bash
Executable File
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"
|