for f in *;do mv "$f" `echo "$f" | sed 's/[ ]*//g' `; done sed中为什么要用[]来括住空格?我不太明白。 rename "s/ *//g" *.mp3