Reference Manual

NAME

printf - print formatted output to STDOUT
SYNOPSIS
printf "format" args...

DESCRIPTION
Command printf prints text specified in the format string, substituting arguments for operators contained therein.

If the number of supplied arguments is less than the number of operators in the format string, the missing arguments are read from STDIN.

Arguments must be valid settings variables, and for the ifn variable, all interface property suffixes are supported.

NOTES
Only string type operators are supported (%s and its variants).

The maximum number of arguments is eight.

The current interface number ifn can be set with an ip ifn command or with the set command.

SEE ALSO
all, for, if, set, while