title: Passing a parameter through pipe in bash
body: <p>I'm trying to pass a parameter through a pipe in terminal for a git command, and, as per usual, I don't know what I'm doing.</p>
  
  <p>Currently: <code>git rm --cached folder/path | rm -rf folder/path | git commit -m '...'</code></p>
  
  <p>I would like to not have to repeat myself with the folder path in the second command if possible, but I'm not sure how to get the <code>folder/path</code> from the first command.</p>
  
  <p>Is it even possible, or am I barking up the wrong tree?</p>