The printf command
Formats and prints ARGUMENTS under control of the FORMAT. 1 example from the lessons of the IVski Linux Playground — try them in the terminal next to them.
Examples
printf "%-12s %8.2f\n", p, r[p]In awk: name left, number right, 2 decimals