shell use command output as string

C++
# you can use "$(command)" to use the output of the evaluation of command as string :

echo "Lorem $(date +"%d.%m.%y") Ipsum"
#>Lorem 17.02.21 Ipsum

Source

Also in C++: