man-pages/man1/printf.1.html
2021-03-31 01:06:50 +01:00

141 lines
3.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of PRINTF</TITLE>
</HEAD><BODY>
<H1>PRINTF</H1>
Section: User Commands (1)<BR>Updated: September 2019<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
printf - format and print data
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>printf</B>
<I>,FORMAT /</I>[<I>,ARGUMENT/</I>]...
<BR>
<B>printf</B>
<I>,OPTION/</I>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
Print ARGUMENT(s) according to FORMAT, or execute according to OPTION:
<DL COMPACT>
<DT id="1"><B>--help</B><DD>
display this help and exit
<DT id="2"><B>--version</B><DD>
output version information and exit
</DL>
<P>
FORMAT controls the output as in C printf. Interpreted sequences are:
<DL COMPACT>
<DT id="3">\&quot;<DD>
double quote
<DT id="4">\\<DD>
backslash
<DT id="5">\a<DD>
alert (BEL)
<DT id="6">\b<DD>
backspace
<DT id="7">\c<DD>
produce no further output
<DT id="8">\e<DD>
escape
<DT id="9">\f<DD>
form feed
<DT id="10">\n<DD>
new line
<DT id="11">\r<DD>
carriage return
<DT id="12">\t<DD>
horizontal tab
<DT id="13">\v<DD>
vertical tab
<DT id="14">\NNN<DD>
byte with octal value NNN (1 to 3 digits)
<DT id="15">\xHH<DD>
byte with hexadecimal value HH (1 to 2 digits)
<DT id="16">\uHHHH<DD>
Unicode (ISO/IEC 10646) character with hex value HHHH (4 digits)
<DT id="17">\UHHHHHHHH<DD>
Unicode character with hex value HHHHHHHH (8 digits)
<DT id="18">%%<DD>
a single %
<DT id="19">%b<DD>
ARGUMENT as a string with '\' escapes interpreted,
except that octal escapes are of the form \0 or \0NNN
<DT id="20">%q<DD>
ARGUMENT is printed in a format that can be reused as shell input,
escaping non-printable characters with the proposed POSIX $'' syntax.
</DL>
<P>
and all C format specifications ending with one of diouxXfeEgGcs, with
ARGUMENTs converted to proper type first. Variable widths are handled.
<P>
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.
<A NAME="lbAE">&nbsp;</A>
<H2>AUTHOR</H2>
Written by David MacKenzie.
<A NAME="lbAF">&nbsp;</A>
<H2>REPORTING BUGS</H2>
GNU coreutils online help: &lt;<A HREF="https://www.gnu.org/software/coreutils/">https://www.gnu.org/software/coreutils/</A>&gt;
<BR>
Report printf translation bugs to &lt;<A HREF="https://translationproject.org/team/">https://translationproject.org/team/</A>&gt;
<A NAME="lbAG">&nbsp;</A>
<H2>COPYRIGHT</H2>
Copyright &#169; 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &lt;<A HREF="https://gnu.org/licenses/gpl.html">https://gnu.org/licenses/gpl.html</A>&gt;.
<BR>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
<A NAME="lbAH">&nbsp;</A>
<H2>SEE ALSO</H2>
<A HREF="/cgi-bin/man/man2html?3+printf">printf</A>(3)
<P>
<BR>
Full documentation at: &lt;<A HREF="https://www.gnu.org/software/coreutils/printf">https://www.gnu.org/software/coreutils/printf</A>&gt;
<BR>
or available locally via: info '(coreutils) printf invocation'
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="21"><A HREF="#lbAB">NAME</A><DD>
<DT id="22"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="23"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="24"><A HREF="#lbAE">AUTHOR</A><DD>
<DT id="25"><A HREF="#lbAF">REPORTING BUGS</A><DD>
<DT id="26"><A HREF="#lbAG">COPYRIGHT</A><DD>
<DT id="27"><A HREF="#lbAH">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:25 GMT, March 31, 2021
</BODY>
</HTML>