#!/bin/bash

# Find all files with spaces in the current directory and its subdirectories
find . -type f -name "* *" | while read -r file; do
    # Create symbolic link with underscores instead of spaces
    linkname=$(echo "$file" | tr ' ' '_')
    ln -s "$file" "$linkname"
done

echo "Symbolic links created successfully."
