fettig.net → Blog

Abe Fettig's Blog

Archives

  • 2010
  • 2008
  • 2007
  • 2006
  • 2005
  • 2004
  • 2003
  • 2002
  • 2001
  • Latest: A useful OS X command: pbcopy

    June 25th, 2007

    Today I learned about the pbcopy command in OS X. It lets you copy text to your clipboard from the command line. This means you can (among other things) copy the contents of a file on a remote server into your clipboard, ready for pasting:
    ssh myserver -x “cat myfile” | pbcopy
    Believe it or not, this… [more]