6 while [[ $line =~
(.
)(.
*) ]]; do
7 letter
=${BASH_REMATCH[1]}
9 line
=${BASH_REMATCH[2]}
12 for letter
in {a..z
}; do
13 if test "${a[$letter]}" = 2; then
15 elif test "${a[$letter]}" = 3; then
19 : $
(( two
+= have2
)) $
(( three
+= have3
))
21 echo checksum
: $
(( two
* three
))