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