find videos/ -name "* *" -type f | while IFS= read -r file; do mv "$file" "${file// /-}" done ./treer.sh videos/ videos/index.gmi