title: pipe output of "file" to "mv" to rename files with file-extension
body: <p>Following situation:
  A folder with many different image-files in it: jpeg, png, gif
  The output of file * looks something like:</p>
  
  <pre><code>filename1: png image data, 300 x 300, some more information bla bla
  filename2: gif image data, 300 x 300, some more information bla bla
  filename3: jpeg image data, 300 x 300, some more information bla bla
  </code></pre>
  
  <p>Now, the best way would be to just append a suffix to the files (like image.png) because the files are named like "avatar_pobmglinmphfhbiffgmdmphklcbjolklmnaeblbk".
  So the problem is that there's no option (afaik) with the command "file" to output only the filetype and filename/-path</p>
  
  <p>My imagination is something with pipes or find -exec with file inside.</p>
  
  <p>Thank you very much in advance for your help!</p>