Jump to content

Format and Print Data

From sexy wiki
Revision as of 15:17, 17 March 2023 by Xbl (talk | contribs) (→printf)

printf

Print ARGUMENT(S) according to FORMAT, or execute according to OPTION.

printf FORMAT [ARGUMENT]
printf OPTION

FORMAT controls the output as in C printf. Interpreted sequences are:
\n new line
%s output as string
%d output as integer

Example:
printf '%s\n' 'yolo'