Annotated edit history of
printf(1) version 3, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
PRINTF |
|
|
2 |
!!!PRINTF |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
AUTHOR |
|
|
7 |
REPORTING BUGS |
|
|
8 |
COPYRIGHT |
|
|
9 |
SEE ALSO |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
printf - format and print data |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__printf__ ''FORMAT'' [[''ARGUMENT'']...__ |
|
|
19 |
printf__ ''OPTION'' |
|
|
20 |
!!DESCRIPTION |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
NOTE: your shell may have its own version of printf which |
3 |
LawrenceDoliveiro |
24 |
will supersede the version described here. Please refer to |
1 |
perry |
25 |
your shell's documentation for details about the options it |
|
|
26 |
supports. |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
Print ARGUMENT(s) according to FORMAT. |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
__--help__ |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
display this help and exit |
|
|
36 |
|
|
|
37 |
|
|
|
38 |
__--version__ |
|
|
39 |
|
|
|
40 |
|
|
|
41 |
output version information and exit |
|
|
42 |
|
|
|
43 |
|
|
|
44 |
FORMAT controls the output as in C printf. Interpreted |
|
|
45 |
sequences are: |
|
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
double quote |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
0NNN |
|
|
54 |
|
|
|
55 |
|
|
|
56 |
character with octal value NNN (0 to 3 digits) |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
\ |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
backslash |
|
|
63 |
|
|
|
64 |
|
|
|
65 |
a |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
alert (BEL) |
|
|
69 |
|
|
|
70 |
|
|
|
71 |
b |
|
|
72 |
|
|
|
73 |
|
|
|
74 |
backspace |
|
|
75 |
|
|
|
76 |
|
|
|
77 |
c |
|
|
78 |
|
|
|
79 |
|
|
|
80 |
produce no further output |
|
|
81 |
|
|
|
82 |
|
|
|
83 |
f |
|
|
84 |
|
|
|
85 |
|
|
|
86 |
form feed |
|
|
87 |
|
|
|
88 |
|
|
|
89 |
n |
|
|
90 |
|
|
|
91 |
|
|
|
92 |
new line |
|
|
93 |
|
|
|
94 |
|
|
|
95 |
r |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
carriage return |
|
|
99 |
|
|
|
100 |
|
|
|
101 |
t |
|
|
102 |
|
|
|
103 |
|
|
|
104 |
horizontal tab |
|
|
105 |
|
|
|
106 |
|
|
|
107 |
v |
|
|
108 |
|
|
|
109 |
|
|
|
110 |
vertical tab |
|
|
111 |
|
|
|
112 |
|
|
|
113 |
xNNN |
|
|
114 |
|
|
|
115 |
|
|
|
116 |
byte with hexadecimal value NNN (1 to 3 digits) |
|
|
117 |
|
|
|
118 |
|
|
|
119 |
uNNNN |
|
|
120 |
|
|
|
121 |
|
|
|
122 |
character with hexadecimal value NNNN (4 |
|
|
123 |
digits) |
|
|
124 |
|
|
|
125 |
|
|
|
126 |
UNNNNNNNN |
|
|
127 |
|
|
|
128 |
|
|
|
129 |
character with hexadecimal value NNNNNNNN (8 |
|
|
130 |
digits) |
|
|
131 |
|
|
|
132 |
|
|
|
133 |
%% |
|
|
134 |
|
|
|
135 |
|
|
|
136 |
a single % |
|
|
137 |
|
|
|
138 |
|
|
|
139 |
%b |
|
|
140 |
|
|
|
141 |
|
|
|
142 |
ARGUMENT as a string with `' escapes |
|
|
143 |
interpreted |
|
|
144 |
|
|
|
145 |
|
|
|
146 |
and all C format specifications ending with one of |
|
|
147 |
diouxXfeEgGcs, with ARGUMENTs converted to proper type |
|
|
148 |
first. Variable widths are handled. |
|
|
149 |
!!AUTHOR |
|
|
150 |
|
|
|
151 |
|
2 |
perry |
152 |
Written by David !MacKenzie. |
1 |
perry |
153 |
!!REPORTING BUGS |
|
|
154 |
|
|
|
155 |
|
|
|
156 |
Report bugs to |
|
|
157 |
!!COPYRIGHT |
|
|
158 |
|
|
|
159 |
|
|
|
160 |
Copyright 2000 Free Software Foundation, Inc. |
|
|
161 |
This is free software; see the source for copying |
|
|
162 |
conditions. There is NO warranty; not even for |
|
|
163 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR |
|
|
164 |
PURPOSE. |
|
|
165 |
!!SEE ALSO |
|
|
166 |
|
|
|
167 |
|
|
|
168 |
The full documentation for __printf__ is maintained as a |
|
|
169 |
Texinfo manual. If the __info__ and __printf__ |
|
|
170 |
programs are properly installed at your site, the |
|
|
171 |
command |
|
|
172 |
|
|
|
173 |
|
|
|
174 |
__info printf__ |
|
|
175 |
|
|
|
176 |
|
|
|
177 |
should give you access to the complete manual. |
|
|
178 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.