Thursday, April 11, 2013

Pipe to clipboard


Copy the output of a command into clipboard:
echo adafasdfa | xclip

Useful for pasting command line output into text editors, spreadsheets etc.
xclip -o | grep name

Useful for pasting large selections (etc from a browser). Equivalent to middle clicking the terminal (but less messy).

No comments:

Post a Comment