I'M trying to write a small program that will take a number as input, anything from 1 to 999,999,999,999 and return it as a string. I've already created a flowchart in dia and now I'M trying to write on top of that chart in bash. I'M very new to bash by the way.
The first thing I need to do is recieve the number a figure out how many groups of three are in the number. Based on counting by threes, if there's an odd number like 4 or 5 that still need t ocount as a groupd. Examples: ### = 1 groups, #,### = 2 gropus, ##,### = 2 groups.
I think I need to dived by 3 what the answer will be my number but I need to account for the remainders as well. Any advice? Thanks.

