Stefano Manni 8/27/2022

Powershell: come compiare l’output di un comando nella clipboard

Read Original

L'articolo spiega come copiare l'output di un comando (es. kubectl per generare un token) direttamente nella clipboard di Windows usando PowerShell. Risolve il problema del comando `clip` che aggiunge un ritorno a capo indesiderato, proponendo la soluzione `(your-command | Out-String).Trim() | Set-Clipboard` per un copia-incolla pulito e automatizzato.

Powershell: come compiare l’output di un comando nella clipboard

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

2
Designing Design Systems
TkDodo Dominik Dorfmeister 2 votes
4
Introducing RSC Explorer
Dan Abramov 1 votes
6
Fragments Dec 11
Martin Fowler 1 votes
7
Adding Type Hints to my Blog
Daniel Feldroy 1 votes
8
Refactoring English: Month 12
Michael Lynch 1 votes
10