Rename pairs - replace a space with an underscore

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Rename pairs - replace a space with an underscore

Postby FXLEWIS » Fri Jan 02, 2026 5:10 pm

I created a rename-pairs CSV file for a project. For some files and folders, I need to replace a space with and underscore. How do I represent the space in the CSV file? When I tested it BRU without the CSV rename pair file, I could just put a space in the REPLACE field. Not sure if that works in a CSV file.

TIA

FL
FXLEWIS
 
Posts: 5
Joined: Fri Dec 05, 2025 11:16 pm

Re: Rename pairs - replace a space with an underscore

Postby Admin » Sat Jan 03, 2026 9:15 am

Yes, put the space character directly in the CSV field, but if the field is just a space (or contains leading/trailing spaces) you should enclose it in double quotes so the space is preserved.

Better approach (if your goal is “replace every space with _”)
- Instead of creating explicit CSV rename-pairs for every file, open Bulk Rename Utility and use Replace (3): put a literal space in the Replace box and an underscore (_) in the With box, then run the rename. That’s much simpler for a bulk space to underscore change.
Admin
Site Admin
 
Posts: 3126
Joined: Tue Mar 08, 2005 8:39 pm


Return to BRU Support