Random notes from mg

a blog by Marius Gedminas

Marius is a Python hacker. He works for Programmers of Vilnius, a small Python/Zope 3 startup. He has a personal home page at http://gedmin.as. His email is marius@gedmin.as. He does not like spam, but is not afraid of it.

Sun, 04 Sep 2005

xsel: the power of Unix

There's a nice litte program called xsel. It lets you access the X Window System selection and clipboard from the command line. It is incredibly useful for a Unix geek like me.

$ xsel|grep -i error

The above shows me all the lines that mention 'error' from my selection. Useful when a command produces oodles of output after several minutes of intense computation, and you realize that you should've redirected the output to a file.

posted at 15:38 | tags: | permanent link to this entry | 0 comments

Name (required)


E-mail (will not be shown)


URL


Comment (some HTML allowed)