title: rename multiple files in shell script
body: <p>rename multiple files...in shell</p>
  
  <p>I have 3 files in a dir</p>
  
  <pre><code>abc.tar.gz
  abc2.tar.gz
  abc3.tar.gz
  </code></pre>
  
  <p>using this command :</p>
  
  <pre><code>rename abc abc.part abc*.tar.gz
  </code></pre>
  
  <p>it converts them into</p>
  
  <pre><code>abc.part.tar.gz
  abc.part2.tar.gz
  abc.part3.tar.gz
  </code></pre>
  
  <p>after it I added 3 more files in it..</p>
  
  <pre><code>abc.tar.gz
  abc2.tar.gz
  abc3.tar.gz
  </code></pre>
  
  <p>and when I fire rename abc abc.part abc*.tar.gz</p>
  
  <p>it will rename all the 6 files so final output is </p>
  
  <pre><code>abc.part.tar.gz
  abc.part.part2.tar.gz
  abc.part.part3.tar.gz
  abc.part.part.tar.gz
  abc.part2.tar.gz
  abc.part3.tar.gz
  </code></pre>
  
  <p>I just want to prevent multiple rename... what should my <code>rename</code> command?</p>
  
  <p>means my final output should be below,no matter how much time I fire rename command.
  here the number of files are <code>DYNAMIC</code> ..it could be 3,4...or whatever... so cannot add statically 3 or some number !!</p>
  
  <pre><code>abc.part.tar.gz
  abc.part2.tar.gz
  abc.part3.tar.gz
  </code></pre>