Bash: Advice put data in a table

Hi

I get some differents output from a bash script.
My goal is to sort them in a kind of table, something like:

Actually the table can change and I don't care about the shape, I'm just looking if there's a well know way to put the output of a script in a table or if someone has his own best way to do that.

Any idea will be appreciate

thanks

D.

Try tabs.

echo "----------------------------------------------------------------------"
echo -e "col1\tcol2\tcol3\tcol4\tcol5\tcol6\tcol7"
echo "----------------------------------------------------------------------"
echo -e "a\tb\tc\td\te\tf\tg"
echo -e "ab\tbc\tcd\tde\tef\tfg\tgh"

The tabs will make the columns line up within 8 character stops.

thank you.

I'm trying, it seems like work fine.

thx for reply
D.