title: How can I put the output of a Chef 'execute resource' into a variable
body: <p>I'd like to put the output of a shell command into a variable for later use in a Chef recipe.</p>
  
  <p>In bash I could do something like <code>output=`tail -1 file.txt`</code> and then I could <code>echo $output</code></p>
  
  <p>Can an 'execute resource' do this so that I can use the result later in the recipe?</p>