Skip to content

Instantly share code, notes, and snippets.

@bhavjot
Created August 30, 2021 05:54
Show Gist options
  • Save bhavjot/f4d1441216a6044859fd3bf434e56e09 to your computer and use it in GitHub Desktop.
Save bhavjot/f4d1441216a6044859fd3bf434e56e09 to your computer and use it in GitHub Desktop.
ls | Rename-Item -NewName {$_.name -replace "OLD-FILE-NAME-PART","NEW-FILE-NAME-PART"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment