August 2000
Intermediate to advanced
816 pages
29h 45m
English
printf
printf formats [strings]
Print strings using the specified formats. formats can be ordinary text characters, C-language escape characters, or more commonly, a set of conversion arguments listed here.
Print the next string.
Print the nth string.
Print 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" $HOMEprintf '%-25.15s %s\n' "My files are in" $HOME
Read now
Unlock full access