Rename file to lowercase

cd folder

for f in *; do mv "$f" "$f.tmp"; mv "$f.tmp" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done

Rename space to dash

cd folder

for i in *;do mv "$i" "${i// /-}";done