@A.B. Nah, not really. That question already has accepted answer. I'm just being obsessive about my awk code, because the idea seemed good at first, but . . .what if the two numbers aren't equal ? So I've made this code , basically I'm taking both numbers, turn them into arrays, and iterate over each element (ending is the size of the smallest array/number ) .
paste.ubuntu.com/11758351