Other Help Topics :: Newbie to DSL!
How do I copy output in the XTerminal into something like Scite, Writer, or Sylpheed?
I'll be asking a lot of questions during the next few weeks!
Thanks.
bigoli
lets say you want to view the output of ls in scite
ls > foobar.txt && scite foobar.txt
enjoy.
Also: for applications that write some or all of their messages to stderror in addition to/instead of stdout, I find it useful to do the above except put an ampersand & in front of the redirect ie
application &>foobar.txt
to send all the output to file instead of the screen.
If you want to see the stuff on screen as well, use a pipe to tee:
application | tee foobar.txt
Another solution:
Select the text in the term window, move the mouse cursor to the place you want to paste, and press middle mouse.
This doesn't work for all x applications.
Also, if what you want is to capture all the stuff in a terminal/shell session to a file, there's the `script` command -
see here
Next Page...
original here.