Fundamentals9 / 17
Up next

printf

#!/usr/bin/env bash
# printf uses a format string; %s for strings, \n for newline
printf '%s is %d years old\n' "Ada" 36
# printf does not add a newline unless you ask for one
printf 'line one\nline two\n'
What you're solving

format output without a forced newline