💾 Archived View for freeshell.de › tldr › printf.gmi captured on 2022-04-28 at 19:21:59. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

printf

Format and print text.

More information.

printf "{%s\n}" "{Hello world}"
printf "{\e[1;34m%.3d\e[0m\n}" {42}
printf "{\u20AC %.2f\n}" {123.4}
printf "{var1: %s\tvar2: %s\n}" "{$VAR1}" "{$VAR2}"
printf -v {myvar} {"This is %s = %d\n" "a year" 2016}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY