printf formats [strings]Print strings using the specified formats. formats can be ordinary text characters, C-language escape characters, printf(3S) format conversion specifiers, or, more commonly, a set of conversion arguments listed next.
%bProcess a string argument for backslash escapes (not in printf(3S)). See the description of allowed escapes under echo.
%sPrint the next string.
%n$sPrint the nth string.
%[-]m[.n]sPrint the next string, using a field that is m characters wide. Optionally limit the field to print only the first n characters of string. Strings are right-adjusted unless the left-adjustment flag - is specified.
$printf '%s %s\n' "My files are in" $HOMEMy files are in /home/arnold $printf '%-25.15s %s\n' "My files are in" $HOMEMy files are in /home/arnold