title: Batch Renaming multiple files with different extensions Linux Script?
body: <p>I would like to write a linux script that will move or copy all files with the same filename (but different extensions) to a new filename for all those files, while maintaining their different extensions. In other words:</p>
  
  <p>if I start with a directory listing:</p>
  
  <p><code>file1.txt, file1.jpg, file1.doc, file12.txt, file12.jpg, file12.doc</code></p>
  
  <p>I would like to write a script to change all the filenames without changing the extensions. For the same example, choosing file2 as the new filename the result would be:</p>
  
  <p><code>file2.txt, file2.jpg and file2.doc, file12.txt, file12.jpg, file12.doc</code></p>
  
  <p>So the files whose filename do not match the current criteria will not be changed.</p>
  
  <p>Best wishes,</p>
  
  <p>George</p>