diff --git a/README.md b/README.md index 1866087..5581f63 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,16 @@ - # windows-tips -## Renombrar archivos masivamente PowerShell +# windows-tips +## PowerShell + +### Renombrar archivos masivamente PowerShell ```sh get-childitem -recurse | rename-item -NewName {$_.name -replace "procesado","" } ``` +### Borrar archivos masivamente PowerShell +```sh +Get-ChildItem -Recurse -Filter *.json | ForEach-Object { + Remove-Item $_.FullName -Force +} +``` ## Copiar clave ssh a servidor linux ```sh type $env:USERPROFILE\.ssh\id_rsa.pub | ssh suma@45.183.247.209 "cat >> .ssh/authorized_keys"