Skip to content

Instantly share code, notes, and snippets.

@nirinium
Created October 14, 2018 02:39
Show Gist options
  • Save nirinium/1286ebbec434dd810b51be7afc63d02e to your computer and use it in GitHub Desktop.
Save nirinium/1286ebbec434dd810b51be7afc63d02e to your computer and use it in GitHub Desktop.
Get-ChildItem *.txt | Rename-Item -NewName { $_.name -Replace '\.txt$','.log' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment