Created
December 5, 2018 16:45
-
-
Save rrodrigueznt/4d8ab18baf434159c04fa3837ba8d743 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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