Yenya's World

Mon, 17 Sep 2007

Command of the Day

I will probably show my own level of ignorance here, but let me show you an useful utility which can improve the integration of the command line and desktop:

Meet xclip, a command-line utility for manipulating X11 selections from the command line. If you wondered how text with tabs (such as diff(1) output) could be copied and pasted using X11, here it is:

diff -u old.file new.file | xclip

There are more options (such as reading the selection from the command line). Hope this helps (seen in this article at KernelTrap).

Section: /computers/desktops (RSS feed) | Permanent link | 2 writebacks

2 replies for this story:

Milan Zamazal wrote: xclip is redundant

I've got good news for you, you can be saved from your ignorance: Look for `Emacs' next time. :-) (In case you wonder what Emacs is, it's an acronym: "Emacs Manipulates All Common Selections".)

Yenya wrote: Good one

Thanks for a good joke, I need a good laugh from time to time :-)

Reply to this story:

URL/Email: [http://... or mailto:you@wherever] (optional)
Title: (optional)
Key image: key image (valid for an hour only)
Key value: (to verify you are not a bot)


Yenya's World: Linux and beyond - Yenya's blog.


RSS feed

Jan "Yenya" Kasprzak

The main page of this blog



Blog roll:

alphabetically :-)