title: Bulk renaming of files based on lookup
body: <p>I have a folder full of image files such as </p>
  
  <ul>
  <li>1500000704_full.jpg</li>
  <li>1500000705_full.jpg</li>
  <li>1500000711_full.jpg</li>
  <li>1500000712_full.jpg</li>
  <li>1500000714_full.jpg</li>
  <li>1500000744_full.jpg</li>
  <li>1500000745_full.jpg</li>
  <li>1500000802_full.jpg</li>
  <li>1500000803_full.jpg </li>
  </ul>
  
  <p>I need to rename the files based on a lookup from a text file which has entries such as,</p>
  
  <ul>
  <li>SH103239 1500000704</li>
  <li>SH103240 1500000705</li>
  <li>SH103241 1500000711</li>
  <li>SH103242 1500000712</li>
  <li>SH103243 1500000714</li>
  <li>SH103244 1500000744</li>
  <li>SH103245 1500000745</li>
  <li>SH103252 1500000802</li>
  <li>SH103253 1500000803</li>
  <li>SH103254 1500000804</li>
  </ul>
  
  <p>So, I want the image files to be renamed,</p>
  
  <ul>
  <li>SH103239_full.jpg</li>
  <li>SH103240_full.jpg</li>
  <li>SH103241_full.jpg</li>
  <li>SH103242_full.jpg</li>
  <li>SH103243_full.jpg</li>
  <li>SH103244_full.jpg</li>
  <li>SH103245_full.jpg</li>
  <li>SH103252_full.jpg</li>
  <li>SH103253_full.jpg</li>
  <li>SH103254_full.jpg</li>
  </ul>
  
  <p>How can I do this job the easiest? Any one can write me a quick command or script which can do this for me please? I have a lot of these image files and manual change isnt feasible. </p>
  
  <p>I am on ubuntu but depending on the tool I can switch to windows if need be. Ideally I would love to have it in bash script so that I can learn more or simple perl or python.</p>
  
  <p>Thanks</p>
  
  <p>EDIT: Had to Change the file names</p>