PowerShell version of the script that waits for data in clipboard and send them to STDOUT
``` # scb is alias for Set-Clipboard # gcb is alias for Get-Clipboard # sleep is alias for Start-Sleep # copy data from clipboard to stdout # MAIN Set-Clipboard # clear clipboard while ($true) { $TXT = Get-Clipboard | Out-String # read clipboard if ($TXT) { Write-Host "$TXT" -NoNewLine Set-Clipboard # clear clipboard } else { Start-Sleep -Milliseconds 100 # sleep 100ms } } ``` -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1854092 Title: pbcopy & pbpaste for Linux To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xsel/+bug/1854092/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs