From aca2cd67abe032141a573f4317d0847aea28bf35 Mon Sep 17 00:00:00 2001 From: Martin Chaparro Date: Sat, 28 Oct 2023 09:28:21 -0500 Subject: [PATCH] Actualizar 'README.md' --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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"