peteg's blog - hacking - mac - 2007 06 05 pbcopy

Accessing the Mac OS X paste buffer from the command line.

/hacking/mac | Link

If you have ever wanted to ship data to or from your X11 environment, check out pbcopy and pbpaste. Now, if only X had a sane cut-and-paste model, we'd be home...