{"id":131,"date":"2015-05-07T02:14:33","date_gmt":"2015-05-06T17:14:33","guid":{"rendered":"https:\/\/blog.daichang.me\/?p=131"},"modified":"2015-05-07T02:14:33","modified_gmt":"2015-05-06T17:14:33","slug":"%e6%a8%99%e6%ba%96%e5%87%ba%e5%8a%9b%e3%81%ae%e5%86%85%e5%ae%b9%e3%82%92%e3%82%b3%e3%83%94%e3%83%bc%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.daichang.me\/?p=131","title":{"rendered":"\u6a19\u6e96\u51fa\u529b\u306e\u5185\u5bb9\u3092\u30b3\u30d4\u30fc\u3059\u308b"},"content":{"rendered":"<p>\u4ed5\u4e8b\u3067\u306fWindows + RLogin or Tera Term\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u3067\u306f\u3001\u5c02\u3089Mac OS X\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u3001Windows\u3060\u3068\u697d\u306a\u306e\u304c\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30d4\u30fc\u3067\u3059\u3002\u4e0a\u8a18\u30bf\u30fc\u30df\u30ca\u30eb\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u30bd\u30d5\u30c8\u306a\u3089\u30de\u30af\u30ed\u3092\u7d44\u3093\u3060\u308a\u3001\u6a19\u6e96\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u5bfe\u51e6\u3067\u304d\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<p>Mac\u3084Linux\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u3082\u3001\u6570\u884c\u301c\u5341\u6570\u884c\u7a0b\u5ea6\u306a\u3089\u3001\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u7bc4\u56f2\u9078\u629e\u306e\u4e0a\u3001\u30b3\u30d4\u30fc\u3067\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3057\u3001\u81a8\u5927\u306a\u91cf\u306e\u30ed\u30b0\u53d6\u308a\u3084\u30d0\u30b0\u767a\u898b\u306e\u969b\u306b\u306f\u3001\u3053\u3093\u306a\u65b9\u6cd5\u3067\u306f\u3068\u3066\u3082\u3058\u3083\u306a\u3044\u3067\u3059\u304c\u3001\u5bfe\u5fdc\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u3088\u3055\u3052\u306a\u30b3\u30de\u30f3\u30c9\u3092\u767a\u898b\u3057\u305f\u306e\u3067\u3001\u30e1\u30e2\u3092\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<blockquote><p>Mac OS X<\/p><\/blockquote>\n<p>Mac OS X\u306b\u306f\u3001pbcopy, pbpaste\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u304c\u305d\u308c\u305e\u308c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\nman\u5148\u751f\u306b\u3088\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u304a\u4ed5\u4e8b\u3092\u3057\u3066\u304f\u308c\u308b\u30b3\u30de\u30f3\u30c9\u306e\u3088\u3046\u3067\u3059\u3002<br \/>\n<code>pbcopy, pbpaste - provide copying and pasting to the pasteboard (the Clipboard) from command line<\/code><\/p>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u3067\u30b3\u30d4\u30fc\u3057\u305f\u3044\u3068\u304d\u306f<code>pbcopy<\/code>\u3001\u30da\u30fc\u30b9\u30c8\u3057\u305f\u3044\u3068\u304d\u306f<code>pbpaste<\/code>\u3092\u4f7f\u3046\u3068\u3044\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre class=\"prettyprint linenums\">% cat hoge | pbcopy<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u3067\u306e\u6a19\u6e96\u51fa\u529b\u3092\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3067\u304d\u307e\u3059\u3002<\/p>\n<blockquote><p>Ubuntu (Linux)<\/p><\/blockquote>\n<p>Ubuntu\u306e\u5834\u5408\u306f\u3001Mac OS X\u306b\u304a\u3051\u308b<code>pbcopy<\/code>\u306b\u76f8\u5f53\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3068\u3057\u3066\u3001<code>xsel<\/code>\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\u56e0\u307f\u306b\u3001man\u5148\u751f\u306b\u3088\u308b\u3068\u3001 &#8220;manipulate the X selection&#8221; \u304cxsel\u306e\u6b63\u5f0f\u306a\u304a\u540d\u524d\u3060\u305d\u3046\u3067\u3059\u3002<br \/>\n\u305d\u306e\u540d\u524d\u306e\u901a\u308a\u3001X Window\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001SSH\u306e\u5834\u5408\u306f\u3001X\u8ee2\u9001\u3092\u8a31\u53ef\u3057\u3066\u3001X\u8ee2\u9001\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>xsel\u306e\u5834\u5408\u306f\u3001pbcopy\u3068\u7570\u306a\u308a\u3001\u5f15\u6570\u304c\u3044\u308b\u306e\u3067\u3001\u3053\u3093\u306a\u611f\u3058\u3067\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u3067\u306e\u6a19\u6e96\u51fa\u529b\u3092\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint linenums\">% cat hoge | xsel --clipboard --input<\/pre>\n<p>\u56e0\u307f\u306b\u3053\u3053\u3067\u3001<code>zsh: command not found: xsel<\/code>\u3053\u3093\u306a\u611f\u3058\u306e\u8f9b\u3044\u3053\u3068\u3092\u8a00\u308f\u308c\u305f\u3089\u3001xsel\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u7d20\u76f4\u306b\u3001<code>apt-get install xsel<\/code>\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u306a\u304a\u3001\u5f15\u6570\u304c\u3081\u3093\u3069\u304f\u3055\u3044\u4eba\u306b\u306f\u3001\u3053\u3093\u306a\u611f\u3058\u3067.zshrc\u3084.bashrc\u306balias\u3092\u4f5c\u3063\u3061\u3083\u3048\u3070\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint linenums\">alias pbcopy=&#39;xsel --clipboard --input&#39;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4ed5\u4e8b\u3067\u306fWindows + RLogin or Tera Term\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u3067\u306f\u3001\u5c02\u3089Mac OS X\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002 \u3053\u3053\u3067\u3001Windows\u3060\u3068\u697d\u306a\u306e\u304c\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30d4\u30fc\u3067\u3059\u3002\u4e0a\u8a18\u30bf\u30fc\u30df\u30ca [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"https:\/\/blog.daichang.me\/?p=131\">\u7d9a\u304d\u3092\u8aad\u3080&#8230;<span class=\"screen-reader-text\"> from \u6a19\u6e96\u51fa\u529b\u306e\u5185\u5bb9\u3092\u30b3\u30d4\u30fc\u3059\u308b<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[14,15,25],"class_list":["post-131","post","type-post","status-publish","format-standard","hentry","category-tech","tag-linux","tag-mac","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=131"}],"version-history":[{"count":0,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/posts\/131\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}