[Bug 1854092] Re: pbcopy & pbpaste for Linux

2022-01-07 Thread psl
Another idea for pbcopy & pbpaste use, simple snippet processor that works in every application that works with clipboard. Could be useful if you have to fill forms with similar values again and again... ``` # MAIN #pbcopy $OUT" echo -n "$OUT" | pbcopy # write to clipboard fi done ```

[Bug 1854092] Re: pbcopy & pbpaste for Linux

2021-07-29 Thread psl
Ubuntu 20.04 doesn't have pbcopy & pbcopy commands, issue is still ignored... -- 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

[Bug 1854092] Re: pbcopy & pbpaste for Linux

2020-11-26 Thread psl
A year ago I published in this bug report a script to copy data from clipboard to standard output. This is updated version, only small modifications to improve compatibility with dash shell. ``` #!/bin/sh # print data from clipboard to stdout, again and again... MODE="xclip" #MODE="xsel" #

[Bug 1854092] Re: pbcopy & pbpaste for Linux

2020-01-06 Thread psl
I am not strong in PowerShell. Previous script sends data from clipboard ONLY to console, it doesn't send them to STDOUT and such script cannot be used to pipe data to other commands. This is version of script that really sends data from clipbaord to the stdout: ``` # scb is alias for

[Bug 1854092] Re: pbcopy & pbpaste for Linux

2020-01-04 Thread psl
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 =

[Bug 1854092] Re: pbcopy & pbpaste for Linux

2020-01-04 Thread psl
** Description changed: This is not a bug report but request for enhancement. Ubuntu 18.04 doesn't have pbcopy & pbpaste commands. Mac users can use two commands, pbcopy and pbpaste, to work with clipbopard in their scripts. No such "easy to use" solution is available at Linux! Could

[Bug 1854092] Re: pbcopy & pbpaste for Linux

2020-01-04 Thread psl
** Description changed: This is not a bug report but request for enhancement. Ubuntu 18.04 doesn't have pbcopy & pbpaste commands. Mac users can use two commands, pbcopy and pbpaste, to work with clipbopard in their scripts. No such "easy to use" solution is available at Linux! Could

[Bug 1854092] Re: pbcopy & pbpaste for Linux

2020-01-04 Thread psl
PowerShell scripts can read/write clipboard data too: ``` PS C:\Users\user> echo "Test 1234" | Set-Clipboard PS C:\Users\user> Get-Clipboard Test 1234 PS C:\Users\user> Set-Clipboard "Hello World!" PS C:\Users\user> Get-Clipboard Hello World! ``` -- You received this bug notification because

[Bug 1854092] Re: pbcopy & pbpaste for Linux

2020-01-03 Thread psl
Users of WSL (Windows Subsystem for Linux) can send data to clipboard in this way: ``` user@WIN10: $ ls -l | clip.exe ``` ``` user@WIN10: $ file $(which clip.exe) /mnt/c/Windows/System32/clip.exe: PE32+ executable (console) x86-64, for MS Windows ``` -- You received this bug notification

[Bug 1854092] Re: pbcopy & pbpaste for Linux

2020-01-03 Thread psl
Do you know that even Windows have CLI command "clip" to send command input to clipboard? Try it: ``` C:\> DIR | CLIP ``` ``` C:\> CLIP < README.TXT ``` -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1854092] Re: pbcopy & pbpaste for Linux

2019-11-30 Thread psl
Modified version of previous demo. Clipbard is cleaned in different way.. The same result, xsel version doesn't work ``` # MAIN pbcopy https://bugs.launchpad.net/bugs/1854092 Title: pbcopy & pbpaste for Linux To manage notifications about this bug go to:

[Bug 1854092] Re: pbcopy & pbpaste for Linux

2019-11-26 Thread psl
I tried to write a simple script to collect data with "copy", script waits in the loop for data in clipboad and prints that text to stdout and clears clipboard. Simple and powerful! It works well with xclip but doesn't work with xsel, like some data are not cleaned and are put to the stdout again

[Bug 1854092] Re: pbcopy & pbpaste for Linux

2019-11-26 Thread psl
This request for against xsel package was created by a mistake. I opened similar request for xclip package https://bugs.launchpad.net/ubuntu/+source/xclip/+bug/1854113 ** Description changed: This is not a bug report but request for enhancement. Ubuntu 18.04 doesn't have pbcopy & pbpaste

[Bug 1854092] Re: pbcopy & pbpaste for Linux

2019-11-26 Thread psl
** Description changed: This is not a bug report but request for enhancement. Ubuntu 18.04 doesn't have pbcopy & pbpaste commands. - Mac users can use two commands, pbcopy and pbpaste to work with + Mac users can use two commands, pbcopy and pbpaste, to work with clipbopard in their