title: Bash Script to convert all flv file in a directory to mp3
body: <p>This is my code so far.</p>
  
  <pre><code>#!/bin/bash
  #James Kenaley
  #Flv to Mp3 directory converter
  
  find /home/downloads -iname "*.flv" | \
  while read I;
  do
      `ffmpeg -i ${I} -acodec copy  ${I/%.flv/.mp3}`
      echo "$I has been converted"
  done
  </code></pre>
  
  <p>but its picking up white spaces in the names of the flv files and throws a error saying its not in the directory. how do make it use the whole file name and not the just the first word before the space?</p>