title: Scala Process - Capture Standard Out and Exit Code
body: <p>I'm working with the Scala <code>scala.sys.process</code> library. </p>
  
  <p>I know that I can capture the exit code with <code>!</code> and the output with <code>!!</code> but what if I want to capture both?</p>
  
  <p>I've seen this answer <a href="https://stackoverflow.com/a/6013932/416338">https://stackoverflow.com/a/6013932/416338</a> which looks promising, but I'm wondering if there is a one liner and I'm missing something.</p>