Wrote recursive function in bash version to increment characters, including wrapping from z to aa.  No more index overflows.