A blog dedicated to my Linux experience and other great tools.
This command is very useful.
for file in *; do mv "$file" `echo $file | sed -e 's/ */_/g' -e 's/_-_/-/g'`; done