Skip to content

Instantly share code, notes, and snippets.

  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save DigitalEssence/928605ab6ee6b7ac77c4af67efdf3e6e to your computer and use it in GitHub Desktop.
Powershell - Replace space in filename with hyphen
dir | rename-item -NewName {$_.name -replace " ","-"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment