Skip to content

Instantly share code, notes, and snippets.

@rrodrigueznt
Created December 5, 2018 16:45
Show Gist options
  • Save rrodrigueznt/4d8ab18baf434159c04fa3837ba8d743 to your computer and use it in GitHub Desktop.
Save rrodrigueznt/4d8ab18baf434159c04fa3837ba8d743 to your computer and use it in GitHub Desktop.
Replace or delete certain characters from filenames of all files in a folder
https://stackoverflow.com/questions/16636996/replace-or-delete-certain-characters-from-filenames-of-all-files-in-a-folder
Dir |
Where-Object { $_.Name -match "\.(docx|pdf)x?$" } |
Rename-Item -NewName { $_.Name -replace "RL","RP" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment