Skip to content

Instantly share code, notes, and snippets.

@cjohnson496
Forked from ethangardner/bulk-rename.ps1
Created December 26, 2018 22:29
Show Gist options
  • Save cjohnson496/4ad511633fa1d9db31917411b4e3701f to your computer and use it in GitHub Desktop.
Save cjohnson496/4ad511633fa1d9db31917411b4e3701f to your computer and use it in GitHub Desktop.
Powershell script to bulk replace spaces with underscores in a directory of files
Dir | Rename-Item –NewName { $_.name –replace “ “,”_” }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment