On Tue, Sep 29, 2026 at 03:07:38PM +0200, Franco Martelli wrote:
> Hello,
> 
> I'd like to write the content of a .txt file to the X11+KDE clipboard, in
> order to do that I defined an "alias":

Xclip is your friend:

  xclip < youefile

(Yes, yes, you can also "cat yourfile | xclip", but, although
a common idiom, it comes from the department of redundancy
department [1]).

Note that there are three selections to choose from (primary,
secondary and clipboard: applications are sometime confused
which one is "the right one") -- see the xclip man page for
details.

Cheers

[1] https://porkmail.org/era/unix/award
-- 
t

Attachment: signature.asc
Description: PGP signature

Reply via email to