Transfer email and migrate accounts with YippieMove.
Home > Mac OS X, Programming > Pipe into the clipboard on OS X: pbcopy

Pipe into the clipboard on OS X: pbcopy

July 27th, 2009

I just discovered this handy command in OS X: pbcopy. It lets you pipe the output of a command right into the clipboard (or the ‘pasteboard’) so you can paste it into some non terminal application next. A convenient way to avoid having to scroll up and select the text in the terminal by hand.

Example:

cat myfile.txt | pbcopy

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • email
  • Slashdot
  • StumbleUpon

siker Mac OS X, Programming , ,

  1. kristjan
    July 28th, 2009 at 08:29 | #1

    Tack som fan. Den där underlättar!!!!

  1. No trackbacks yet.