f(){((++v$v));read -n1 v&&f;} f for v in {A..Z} {a..z} { printf $v:%3d\\n $[v$v] }