Captures the stdout of a command and outputs it “in place”, replacing everything about $(...)

var=$(echo hello world!)
#var will be "hello world" as that was the output of the command