printf(1) | format and print data |
printf(1P, 1p) | write formatted output |
PRINTF(1) | User Commands | PRINTF(1) |
printf - format and print data
printf FORMAT [ARGUMENT]...
printf OPTION
Print ARGUMENT(s) according to FORMAT, or execute according to OPTION:
FORMAT controls the output as in C printf. Interpreted sequences are:
and all C format specifications ending with one of diouxXfeEgGcs, with ARGUMENTs converted to proper type first. Variable widths are handled.
NOTE: your shell may have its own version of printf, which usually supersedes the version described here. Please refer to your shell's documentation for details about the options it supports.
Written by David MacKenzie.
GNU coreutils online help:
<https://www.gnu.org/software/coreutils/>
Report any translation bugs to
<https://translationproject.org/team/>
Copyright © 2023 Free Software Foundation, Inc. License
GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO
WARRANTY, to the extent permitted by law.
printf(3)
Full documentation
<https://www.gnu.org/software/coreutils/printf>
or available locally via: info '(coreutils) printf invocation'
February 2024 | GNU coreutils 9.4 |