Ditch Awk version of shoal(1) for pure Bash