Printing repeats within repeats, and splitting a list into columns

BASH printf is a complex piece of machinery. The man page says a printf command should look like printf FORMAT [ARGUMENT]…, which makes it seem the “argument” is the thing to be printed and the “format” describes how. But it’s not that simple, and some ingenious tricks are possible with “format”.

Source: LXer – Printing repeats within repeats, and splitting a list into columns