My current “ homework ”, ‘downing’ this aspect of shell programming. 😉 

The printf command [Bash Hackers Wiki]