-- Leo's gemini proxy
-- Connecting to freeshell.de:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini;lang=en-GB
> Format and print text.
Print a text message:
printf "{%s\n}" "{Hello world}"
Print an integer in bold blue:
printf "{\e[1;34m%.3d\e[0m\n}" {42}
Print a float number with the Unicode Euro sign:
printf "{\u20AC %.2f\n}" {123.4}
Print a text message composed with environment variables:
printf "{var1: %s\tvar2: %s\n}" "{$VAR1}" "{$VAR2}"
Store a formatted message in a variable (does not work on zsh):
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).
-- Response ended
-- Page fetched on Tue May 21 02:28:35 2024