Clipboard access from shell (utf-8) Two very nice shell commands that Apple has given us are the pbcopy and pbpaste commands. These allow stdin to go to the clipboard and the clipboard to be written to stdout. Unfortunately the commands seem to use a combination of MacRoman and question marks for non-ASCII characters, which often makes them unusable for me, since I work with non-ASCII characters. So today I decided to write a replacement for the two commands (yes, I did also file an enhancement report). You can download them here. There's just one source, it compiles to a command which works as pbc ·
http://sigpipe.macromates.com/2005/10/11/clipboard-access-from-shell-utf-8/Clipboard access from shell (utf-8) Two very nice shell commands that Apple has given us are the pbcopy and pbpaste commands. These allow stdin to go to the clipboard and the clipboard to be written to stdout. Unfortunately the commands seem to use a combination of MacRoman and question marks for non-ASCII characters, which often makes them unusable for me, since I work with non-ASCII characters. So today I decided to write a replacement for the two commands (yes, I did also file an enhancement report). You can download them here. There's just one source, it compiles to a command which works as pbc ·
http://sigpipe.macromates.com/2005/10/11/clipboard-access-from-shell-utf-8/