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 |
Statements (48)
| Predicate | Object |
|---|---|
| instanceOf |
Unix command
ⓘ
command-line utility ⓘ text processing utility ⓘ |
| advantageOverEcho |
predictable escape handling
ⓘ
richer formatting capabilities ⓘ |
| availableIn |
GNU Core Utilities
ⓘ
surface form:
GNU coreutils
|
| category | shell built-in (in many shells) ⓘ |
| exitStatus |
0 on success
ⓘ
non-zero on failure ⓘ |
| implementation |
BSD printf
ⓘ
printf self-linksurface differs ⓘ
surface form:
GNU printf
|
| inputSource | command-line arguments ⓘ |
| inspiredBy | C printf function ⓘ |
| introducedIn |
POSIX
ⓘ
surface form:
POSIX.1-1990
|
| license | varies by implementation ⓘ |
| operatingSystem |
Linux
ⓘ
Unix ⓘ macOS ⓘ |
| operatingSystemFamily |
Unix-like systems
ⓘ
surface form:
Unix-like
|
| outputTarget |
standard output
ⓘ
stdout ⓘ |
| primaryFunction |
format text
ⓘ
print formatted data ⓘ |
| relatedCommand | echo ⓘ |
| shellIntegration |
Unix shell
ⓘ
surface form:
Bash
Dash ⓘ KornShell ⓘ Unix shell ⓘ
surface form:
POSIX 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 ⓘ |
Referenced by (2)
Full triples — surface form annotated when it differs from this entity's canonical label.
this entity surface form:
GNU printf