In addition to the backticks, you can use $(), which I find easier to read, and allows for nesting.
OUTPUT=$(ls -1) echo $OUTPUT In addition to the backticks, you can use $(), which I find easier to read, and allows for nesting.
OUTPUT=$(ls -1) echo $OUTPUT