Skip to main content
3 of 12
Quoted variable
that other guy
  • 124.7k
  • 12
  • 187
  • 214

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