print ( expression exp1 [, expression exp2, ...] )
The print procedure prints the expression to stdout as a single line terminated with a newline character. If there is more than one argument, they are printed with a space delimiter. If there are no arguments, such as print(), the print result is a newline only. You can use variables, numbers, strings, lists or expressions as arguments in this function.
print("Hello world");
printf ( string format [, expression exp1, ...] );
The printf procedure prints a formatted string to stdout.
For more information about formatting parameters, see the printf(3) man page.
#this prints " 10" with no newline. printf("%4d", 10); #this prints "cory" preceded by 16 blank spaces, terminated with a newline. user="cory"; printf("%-20.20s\n", user);
printnnl ( expression expr1 [, expression expr2, ...] )
The printnnl procedure is similar to the print function except that it does not terminate the output with a newline character.
printvars( );
The printvars procedure prints all Privilege Manager for Unix variables to the user’s screen. It is useful for debugging configuration file policies.
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Conditions d’utilisation Confidentialité Cookie Preference Center