> I'm trying to rename a lot of files. I just want to substitute underlines > with whitespaces. How can I do that? > possibly not the easiest way, but it works: for i in *; do mv "$i" "${i//_/ }"; done works only with bash 2.x (probably you have one ...). you also could try mmv, but i don't know, if it is capable of this kind of operations.