Amiga Unix — 68040 · 68060

Manual pages › General commands (1)

printf(1)

format and print data

Package: coreutil, added for amigaux.

This package comes with the extra set; without it, printf is the original one: see printf-original(1).

Also by this name: printf(3S), Standard input and output · printf(3B), BSD C library

printf - format and print data

printf FORMAT [ARGUMENT]...
printf OPTION

NOTE: your shell may have its own version of printf which will supercede the version described here. Please refer to your shell's documentation for details about the options it supports.

Print ARGUMENT(s) according to FORMAT.

display this help and exit
output version information and exit

FORMAT controls the output as in C printf. Interpreted sequences are:

\"
double quote
character with octal value NNN (1 to 3 digits)
\\
backslash
alert (BEL)
backspace
produce no further output
form feed
new line
carriage return
horizontal tab
vertical tab
byte with hexadecimal value NN (1 to 2 digits)
character with hexadecimal value NNNN (4 digits)
character with hexadecimal value NNNNNNNN (8 digits)
%%
a single %
%b
ARGUMENT as a string with `\' escapes interpreted,
except that octal escapes are of the form \0 or \0NNN

and all C format specifications ending with one of diouxXfeEgGcs, with ARGUMENTs converted to proper type first. Variable widths are handled.

Written by David MacKenzie.

Report bugs to <bug-coreutils@gnu.org>.

Copyright © 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The full documentation for printf is maintained as a Texinfo manual. If the info and printf programs are properly installed at your site, the command

info coreutils printf

should give you access to the complete manual.

March 2004 printf 5.2.1