title: Rename and remove every character before _ for multiple files in a folder
body: <p><a href="https://stackoverflow.com/questions/19642100/how-to-rename-all-files-in-a-folder-removing-everything-after-space-character-in/19642175#19642175">I found this post here,</a> and it works for removing everything after the space, but I can't reverse engineer it to batch remove an underscore and everything before it within a folder. The terminal line from the post mentioned is</p>
  
  <pre><code>find . -type f -name "* *" -exec bash -c 'f="$1"; s="${f/_ / }"; mv -- "$f" "${s/ *./.}"' _ '{}' \;
  </code></pre>
  
  <p>So I need it to be an underscore instead of a space, and I need it to remove before the character and not after. For example. if a file is named:</p>
  
  <pre><code>random text _987media.mp4
  </code></pre>
  
  <p>I want it to be named:</p>
  
  <pre><code>987media.mp4
  </code></pre>