title: replace strings in array with bash
body: <p>I need to work with bash only and im new to it</p>
  
  <pre><code>#!/opt/bin/bash
  SAVEIFS=$IFS
  IFS=$'\n'
  array=($(mysql --host=xxxx --user=xxxx --password=xxxx -s -N -e 'use xbmc_video; SELECT strFilename FROM movie, files WHERE files.idFile=movie.idFile ORDER BY idMovie DESC LIMIT 10;'))
  </code></pre>
  
  <p>This produces an array of filenames with spaces within since im working on windows samba shares.  Question is how can I delete last 4 symbols in every string to get rid of extensions without having to bother which ext is that I want to get pure file names</p>