printf

E299164

printf is a command-line utility in Unix-like systems used to format and print data according to specified format strings.

All labels observed (2)

Label Occurrences
GNU printf 1
printf canonical 1

How this entity was disambiguated

Statements (48)

Predicate Object
instanceOf Unix command
command-line utility
text processing utility
advantageOverEcho predictable escape handling
richer formatting capabilities
availableIn GNU coreutils
linked to: GNU Core Utilities
category shell built-in (in many shells)
exitStatus 0 on success
non-zero on failure
implementation BSD printf
GNU printf
linked to: printf
inputSource command-line arguments
inspiredBy C printf function
introducedIn POSIX.1-1990
linked to: POSIX
license varies by implementation
operatingSystem Linux
Unix
macOS
operatingSystemFamily Unix-like
linked to: Unix-like systems
outputTarget standard output
stdout
primaryFunction format text
print formatted data
relatedCommand echo
shellIntegration Bash
linked to: Unix shell

Dash
KornShell
POSIX shell
linked to: Unix shell

Zsh
standard POSIX
Single UNIX Specification
supports character formatting
escape sequences
field width specification
floating-point formatting
format strings
hexadecimal formatting
left justification
numeric formatting
octal formatting
positional parameters
precision specification
string formatting
zero padding
typicalUse creating tabular output
generating structured text
printing numbers with specific precision
script output formatting

How these facts were elicited

Referenced by (2)

Full triples — surface form annotated when it differs from this entity's canonical label.

printf implementation GNU printf
linked to: printf