How to use Download space_to_underscore.py. Open your terminal, and change the directory to where the script is located. Run python space_to_underscore.py. Follow the prompts to edit filenames from a specific folder.