My knowledge of bash is not very strong, I wonder how to generate a tree-like output from a list of numbers based on the total number of digits and the fanout (the number output