redirecting output to the clipboard in xubuntu
Thilo Six
T.Six at gmx.de
Wed Sep 13 22:01:46 UTC 2006
Aroon Pahwa wrote the following on 13.09.2006 22:43:
> i've googled around for this and i found the solution seems to be
> distro/windowmanager??? specifc. anyone know how to redirect output to
> the clipboard.
>
> ie. i want to do something like
>
> cat somefile.txt > [clipboard filedescriptor]
>
> or grep something somefile.txt > [clipboard]
>
> im running xubuntu 6.06
>
> thanks!
>
> aroon
>
you need to install:
$ aptitude search xclip
p | 0.08-4.1ub | xclip | command line interface to X selections
Then you can do:
$ cat some-text-file.txt | xclip
or
$ ls -l | xclip
then go to e.g. gedit and paste with middle mouse.
works here.
$ man xclip for further details
HTH Thilo
--
i am on Ubuntu 2.6 KDE
- some friend of mine
gpg key: Ox4A411E09
More information about the ubuntu-users
mailing list