printf vs echo
Why do scripts prefer printf '%s\n' "$value" over echo "$value"?
printf '%s\n' "$value"
echo "$value"
Choose one answer
printf is faster because it doesn't create a new line.
printf
printf automatically quotes the value so the shell can reuse it.
echo may treat -n or backslashes specially.
echo
-n
echo can't print variables that contain spaces.