Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Akira-Kuru/48327929a3a312cdf883016c11b4b34d to your computer and use it in GitHub Desktop.
Save Akira-Kuru/48327929a3a312cdf883016c11b4b34d to your computer and use it in GitHub Desktop.
Powershell command to replace all spaces of files in a directory with underscore
ls *.* | Rename-Item -NewName { $_.name -replace " ","_" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment