title: Replace underscores to whitespaces using bash script
body: <p>How can I replace all underscore chars with a whitespace in multiple file names using Bash Script? Using this code we can replace underscore with dash. But how it works with whitespace?</p>
  
  <pre><code>for i in *.mp3;
  do x=$(echo $i | grep '_' | sed 's/_/\-/g');
  if [ -n "$x" ];
  then mv $i $x;
  fi;
  done;
  </code></pre>
  
  <p>Thank you!</p>