{"id":5608,"date":"2019-11-25T18:07:03","date_gmt":"2019-11-25T10:07:03","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5608"},"modified":"2019-11-25T19:25:47","modified_gmt":"2019-11-25T11:25:47","slug":"xclip","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/xclip","title":{"rendered":"xclip\u547d\u4ee4 – \u8de8\u7a97\u53e3\u590d\u5236\u6587\u5b57"},"content":{"rendered":"\n

\u4f7f\u7528fsview\u547d\u4ee4\u65b9\u4fbf\u7684\u7ba1\u7406 X selections \u91cc\u9762\u5185\u5bb9\u7684\u5de5\u5177 \u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>xclip [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong> <\/p>\n\n\n\n

-i<\/td>\u4ece stdin \u8bfb\u5165<\/td><\/tr>
-o<\/td>\u6253\u5370\u5230\u6807\u51c6\u8f93\u51fa<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong> <\/p>\n\n\n\n

\u526a\u5207\u677f\u5185\u5bb9\u8f93\u51fa\u5230\u6587\u4ef6:<\/p>\n\n\n\n

[root@linuxcool ~]# xclip -o > ~\/test.txt <\/pre>\n\n\n\n

\u526a\u5207\u677f\u5185\u5bb9\u8f93\u51fa\u5230\u7ec8\u7aef:<\/p>\n\n\n\n

[root@linuxcool ~]# xclip -selection c -o<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u4f7f\u7528fsview\u547d\u4ee4\u65b9\u4fbf\u7684\u7ba1\u7406 X selections \u91cc\u9762\u5185\u5bb9\u7684\u5de5\u5177 \u3002 \u8bed\u6cd5\u683c\u5f0f\uff1axclip [\u53c2\u6570] […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5608"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5608"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5608\/revisions"}],"predecessor-version":[{"id":5677,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5608\/revisions\/5677"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}