
printf
List of commands for printf:
-
printf:tldr:532b5 printf: Print a text message composed with environment variables.$ printf "${var1: %s\tvar2: %s\n}" "${$VAR1}" "${$VAR2}"try on your machineexplain this command
-
printf:tldr:b24f6 printf: Print a text message.$ printf "${%s\n}" "${Hello world}"try on your machineexplain this command
-
printf:tldr:dc9bc printf: Store a formatted message in a variable (does not work on zsh).$ printf -v ${myvar} ${"This is %s = %d\n" "a year" 2016}try on your machineexplain this command