1

How to center output

view story
linux-howto

http://www.unix.com – Hi, i wrote a script which prints me the results of a galton board, everything's fine and it works, but now i want to center the output on the screen and i don't know how to do it.:confused: Code: for i in $(eval echo {1..$SLOT}) do                                                # print all elements of the array   printf "%4d" ${Slots[$i]}    done thanks for your help :D Moderator's Comments: (HowTos)