Skip to main content
1 of 12
Andy Lester
  • 94.2k
  • 16
  • 106
  • 162

In addition to the backticks, you can use $(), which I find easier to read, and allows for nesting.

OUTPUT=$(ls -1) echo $OUTPUT 
Andy Lester
  • 94.2k
  • 16
  • 106
  • 162