JP Vossen on 22 Jan 2010 13:12:34 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] copy/paste the X clipboard


All the copy/paste comments in the 'Gnome and "editable menu shortcut 
keys"' thread that has morphed into being about 'screen' reminded me of 
the 'xsel' tool.  (See also xclip, but I like xsel better.)

One of the reasons I wanted to re-map the copy/paste keys in the 
terminal is that I use them a LOT.  I tend to bounce out to the command 
prompt to do all kinds of things, and using the clipboard instead of 
temp files is a lot fewer steps and a lot faster.

See install xsel and then read the man page.

For example:
	1) Copy some lines in, say, gedit
	2) $ xsel | sort | xsel -b
	3) Paste back into gedit

Later,
JP
----------------------------|:::======|-------------------------------
JP Vossen, CISSP            |:::======|      http://bashcookbook.com/
My Account, My Opinions     |=========|      http://www.jpsdomain.org/
----------------------------|=========|-------------------------------
"Microsoft Tax" = the additional hardware & yearly fees for the add-on
software required to protect Windows from its own poorly designed and
implemented self, while the overhead incidentally flattens Moore's Law.
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug