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