title: Batch renaming filenames between hyphens using bash
body: <p>I'm a student and I'm very new to bash, so any help is greatly appreciated!</p>
  
  <p>I'm trying to rename a batch of files that look like this: local_date_1415+6556_0001.txt and local_date_1415+6556_0002.txt. </p>
  
  <p>Example file name: uuw_07052006_1415+6556_0001.txt</p>
  
  <p>I need the "1415+6556" section of each filename to have a 2M in front of it, like "2M1415+6556". About half the files in the folder already have the 2M, so I can't just search for the string and replace.</p>
  
  <p>Is there a way to rename the batch of files using "_" as a delimiter so I could replace all the third sections entirely with the correct string?</p>
  
  <p>I have the rename command on my machine, I'm just not sure how to use it here.</p>