IT 3110 : Advanced System Administration

Standard output


Review


Preserve spacing


printf another example


printf another example

For a string, the first number is the maximum field width, and the second is the number of bytes to be printed. The string will be truncated (if longer than max) or blank padded (if less than min) as needed. When the max and min specifiers are the same, then the string is guaranteed to be that length. The negative sign on the specifier means to left-align the string (within its field width). Without the minus sign, the string would right-justify.”


Other printf examples


Output to file(review)


Output


Output


Output as arguments to other programs