如何在MacOSX命令行下访问剪贴版

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

pbpaste | sort

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

ps | pbcopy

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

No votes yet

发表新评论

此内容将保密,不会被其他人看见。 If you have a Gravatar account, used to display your avatar.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.