📜 ⬆️ ⬇️

How to clipboard from bash?

Good all the time of day!

Not so long ago I began to learn all the delights of programming in bash. I write scripts to automate routine actions that occur in the course of work (C programmer under Nix). It seems to be =)
So, it became necessary to use bash clipboard (using only bash tools and standard Solaris utilities). Those. copy the value of a variable to this very buffer. "Xsel" and "xclip" no.
The specificity is such that all work takes place on a remote customer’s wheelbarrow, in the grid of which there is even no Internet. Accordingly, I can not put any software.
Tell me how to do it (if this is at all possible)?
Googling did not produce results.

PS I hope the live broadcast at least someone reads.

')

Source: https://habr.com/ru/post/47790/


All Articles