Just a quick tip!

You have to use the bash function ${foo//string1/string2}. Check the Advanced Bash-Scripting Guide for a complete list of string manipulating functions.

for foo in *; do mv "$foo" ${foo// /_}; done

Popularity: 18% [?]

Share and Enjoy:
  • Digg
  • del.icio.us
  • Slashdot
  • Technorati