Syntax
string sprintf ( string format [, expression expr, ...])
Description
The sprintf function returns a formatted string.
For more information about formatting parameters, see the printf(3) man page.
Example
printf("User= %-8.8s Application: %s\n", user, app);
Prints the same as:
a=sprintf("User= %-8.8s Application: %s", user, app); print(a);