Skip to content

Instantly share code, notes, and snippets.

@devgioele
Last active December 9, 2021 13:58
Show Gist options
  • Save devgioele/b3a3162cc24184033a99d75ce3c2f5c3 to your computer and use it in GitHub Desktop.
Save devgioele/b3a3162cc24184033a99d75ce3c2f5c3 to your computer and use it in GitHub Desktop.
Powershell cmd to rename files recursively using a regex
# Changing the file extensions of files from .js to .tsx
Get-ChildItem ./src -File -Recurse | Rename-Item -NewName { $_.Name -replace '\.js','.tsx' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment