xsel and you
As a technology worker, I live in web-based ticketing systems. As such, you generally get some data, such as a command or list of hosts, you need to work with in a shell.
For may years my work flow was:
- highlight whatever it is in the ticket
- switch over to my terminal
- open a txt file
- save file
- parse file.
This is where xsel shines. xsel is a wonderful tool for storing and retrieving data on the command line.
is used for pasting AND copying to the system clipboard. This allows you to things like
on a column of hostnames and, say, their description you Ctrl-C from a ticket.
Cooler still, in Ubuntu, you can eliminate the Crtl-C part and just manipulate what you’ve highlighting with bare
There are a few tools for manipulating clipboards for different OSes.
xclip and prominent in the Linux space. I believe
pbpaste are for OSX.