title: How to get exit code and stdout of a linux command at the same time
body: <p>I execute a <code>curl [url]</code> command in a Linux shell script.  I want to get this command's exit code and its output at the same time without using a temporary file.</p>
  
  <p>Is there any method to do that?</p>