#!/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'
format output without a forced newline