You will most often use Bash functions to make your shell life easier; instead of typing out complex command pipelines, ...
The printf command offers well-defined behavior following the POSIX standard, which means it works the same way across shells ...