title: How can I make each lines of a command an argument of another command?
body: <p>In my case, I want to run Eslint on all the Git staged files.</p>
  
  <p><code>git diff --diff-filter=d --cached --name-only | grep -E '\.jsx?$</code> outputs:</p>
  
  <pre><code>changedFile1.js
  changedFile2.js
  </code></pre>
  
  <p>I want to pass them to Eslint to generate the command:</p>
  
  <pre><code>node_modules/.bin/eslint changedFile1.js changedFile2.js
  </code></pre>
  
  <p>How would I do this?</p>
  
  <p>So far, the only solution I've found is to loop through the changed files and then call Eslint for each changed file. However, this is much slower than calling Eslint once with all the changed files.</p>
  
  <p>I'm using Ubuntu 16.04.</p>