Actualizar 'README.md'

This commit is contained in:
2023-10-28 09:28:21 -05:00
parent 91a194e540
commit aca2cd67ab

View File

@@ -1,8 +1,16 @@
# windows-tips # windows-tips
## Renombrar archivos masivamente PowerShell ## PowerShell
### Renombrar archivos masivamente PowerShell
```sh ```sh
get-childitem -recurse | rename-item -NewName {$_.name -replace "procesado","" } 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 ## Copiar clave ssh a servidor linux
```sh ```sh
type $env:USERPROFILE\.ssh\id_rsa.pub | ssh suma@45.183.247.209 "cat >> .ssh/authorized_keys" type $env:USERPROFILE\.ssh\id_rsa.pub | ssh suma@45.183.247.209 "cat >> .ssh/authorized_keys"