First page Back Continue Last page Graphics
Screen Output: printf
Pages 821 - 823
You have much more control with the printf command:
printf format-string [argument …]
Notice that the format-string is required, but the list of arguments is not
The format string uses special printf codes to format data (see printf(1) and the section of printf(3) titled "Format of the format string"), such as:
- %i display an integer value
- %s display a string
- %c display a single character
Plus the escape codes like \n and \t as with echo.