title: How to Batch Rename Files in a macOS Terminal?
body: <p>I have a folder with a series of files named:</p>
  
  <pre><code>prefix_1234_567.png
  prefix_abcd_efg.png
  </code></pre>
  
  <p>I'd like to <em>batch remove</em> one underscore and the middle content so the output would be:</p>
  
  <pre><code>prefix_567.png
  prefix_efg.png
  </code></pre>
  
  <p>Relevant but not completely explanatory:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/5394112">How can I batch rename files using the Terminal?</a></li>
  <li><a href="https://stackoverflow.com/questions/10664542">Regex to batch rename files in OS X Terminal</a></li>
  </ul>