| 1 |
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1. |
| 2 |
.TH PRINTF "1" "February 2026" "GNU coreutils 9.10" "User Commands" |
| 3 |
.SH NAME |
| 4 |
printf \- format and print data |
| 5 |
.SH SYNOPSIS |
| 6 |
.B printf |
| 7 |
\fI\,FORMAT \/\fR[\fI\,ARGUMENT\/\fR]... |
| 8 |
.br |
| 9 |
.B printf |
| 10 |
\fI\,OPTION\/\fR |
| 11 |
.SH DESCRIPTION |
| 12 |
.\" Add any additional description here |
| 13 |
.PP |
| 14 |
Print ARGUMENT(s) according to FORMAT, or execute according to OPTION: |
| 15 |
.TP |
| 16 |
\X'tty: link https://www.gnu.org/software/coreutils/printf#printf--help'\fB\-\-help\fP\X'tty: link' |
| 17 |
display this help and exit |
| 18 |
.TP |
| 19 |
\X'tty: link https://www.gnu.org/software/coreutils/printf#printf--version'\fB\-\-version\fP\X'tty: link' |
| 20 |
output version information and exit |
| 21 |
.PP |
| 22 |
FORMAT controls the output as in C printf. Interpreted sequences are: |
| 23 |
.TP |
| 24 |
\e" |
| 25 |
double quote |
| 26 |
.TP |
| 27 |
\e\e |
| 28 |
backslash |
| 29 |
.TP |
| 30 |
\ea |
| 31 |
alert (BEL) |
| 32 |
.TP |
| 33 |
\eb |
| 34 |
backspace |
| 35 |
.TP |
| 36 |
\ec |
| 37 |
produce no further output |
| 38 |
.TP |
| 39 |
\ee |
| 40 |
escape |
| 41 |
.TP |
| 42 |
\ef |
| 43 |
form feed |
| 44 |
.TP |
| 45 |
\en |
| 46 |
new line |
| 47 |
.TP |
| 48 |
\er |
| 49 |
carriage return |
| 50 |
.TP |
| 51 |
\et |
| 52 |
horizontal tab |
| 53 |
.TP |
| 54 |
\ev |
| 55 |
vertical tab |
| 56 |
.TP |
| 57 |
\eNNN |
| 58 |
byte with octal value NNN (1 to 3 digits) |
| 59 |
.TP |
| 60 |
\exHH |
| 61 |
byte with hexadecimal value HH (1 to 2 digits) |
| 62 |
.TP |
| 63 |
\euHHHH |
| 64 |
Unicode (ISO/IEC 10646) character with hex value HHHH (4 digits) |
| 65 |
.TP |
| 66 |
\eUHHHHHHHH |
| 67 |
Unicode character with hex value HHHHHHHH (8 digits) |
| 68 |
.TP |
| 69 |
%% |
| 70 |
a single % |
| 71 |
.TP |
| 72 |
%b |
| 73 |
ARGUMENT as a string with '\e' escapes interpreted, |
| 74 |
except that octal escapes should have a leading 0 like \e0NNN |
| 75 |
.TP |
| 76 |
%q |
| 77 |
ARGUMENT is printed in a format that can be reused as shell input, |
| 78 |
escaping non\-printable characters with the POSIX $'' syntax |
| 79 |
.PP |
| 80 |
and all C format specifications ending with one of diouxXfeEgGcs, with |
| 81 |
ARGUMENTs converted to proper type first. Variable widths are handled. |
| 82 |
.PP |
| 83 |
Your shell may have its own version of printf, which usually supersedes |
| 84 |
the version described here. Please refer to your shell's documentation |
| 85 |
for details about the options it supports. |
| 86 |
.SH AUTHOR |
| 87 |
Written by David MacKenzie. |
| 88 |
.SH "REPORTING BUGS" |
| 89 |
Report bugs to: bug\[email protected] |
| 90 |
.br |
| 91 |
GNU coreutils home page: <https://www.gnu.org/software/coreutils/> |
| 92 |
.br |
| 93 |
General help using GNU software: <https://www.gnu.org/gethelp/> |
| 94 |
.br |
| 95 |
Report any translation bugs to <https://translationproject.org/team/> |
| 96 |
.SH "SEE ALSO" |
| 97 |
\fBprintf\fP(3) |
| 98 |
.PP |
| 99 |
.br |
| 100 |
Full documentation <https://www.gnu.org/software/coreutils/printf> |
| 101 |
.br |
| 102 |
or available locally via: info \(aq(coreutils) printf invocation\(aq |
| 103 |
.PP |
| 104 |
.br |
| 105 |
Packaged by Debian (9.10\-1) |
| 106 |
.br |
| 107 |
Copyright \(co 2026 Free Software Foundation, Inc. |
| 108 |
.br |
| 109 |
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. |
| 110 |
.br |
| 111 |
This is free software: you are free to change and redistribute it. |
| 112 |
.br |
| 113 |
There is NO WARRANTY, to the extent permitted by law. |