Skip navigation

使用命令pbpaste来将当前系统剪贴版的内容输出到标准输出上,例如:

pbpaste | sort

使用命令pbcopy来将后续从标准输入读取的内容放入剪贴版,例如:

ps | pbcopy

参考:http://developer.apple.com/DOCUMENTATION/Darwin/Reference/ManPages/man1/pbcopy.1.html

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>