"This is particularly useful if you're trying to get command-line output over to an e-mail or web page. Instead of scrolling around in the terminal to cut and paste with the mouse, screen by screen, you can use this:
"command --arg | xclip
"Then go to whichever graphical program you want to paste the input into, and paste with the middle mouse button or the appropriate menu item."