I was trying to remove all the underscores, spaces and square brackets from many animation files name, which made a big mess.
I used the code below to replace/remove the characters with what I want.
Replace
Get-ChildItem -Filter "*One Piece_*" -Recurse |
Rename-Item -NewName {$_.Name -replace 'One Piece_','One Piece '}
Or (to delete space)
Get-ChildItem -Filter "* *" -Recurse |
Rename-Item -NewName {$_.Name -replace ' ',''}
Now all the file names look like this:
One Piece 031EEE7A115
→ should be One Piece 031 EEE7A115
One Piece 032FFB90605
→ should be One Piece 032 FFB90605
etc.
Is there a way to insert space to all the files after the episode number?