{"id":16093,"date":"2009-11-10T07:00:00","date_gmt":"2009-11-10T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2009\/11\/10\/little-known-command-line-utility-clip\/"},"modified":"2009-11-10T07:00:00","modified_gmt":"2009-11-10T07:00:00","slug":"little-known-command-line-utility-clip","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20091110-00\/?p=16093","title":{"rendered":"Little-known command line utility: clip"},"content":{"rendered":"<p>\nWindows Vista includes a tiny command line utility called <code>clip<\/code>.\nAll it does is paste its stdin onto the clipboard.\n<\/p>\n<pre>\ndir | clip\necho hey | clip\n<\/pre>\n<p>\nFor the opposite direction, I use a little perl script:\n<\/p>\n<pre>\nuse Win32::Clipboard;\nprint Win32::Clipboard::GetText();\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Windows Vista includes a tiny command line utility called clip. All it does is paste its stdin onto the clipboard. dir | clip echo hey | clip For the opposite direction, I use a little perl script: use Win32::Clipboard; print Win32::Clipboard::GetText();<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-16093","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>Windows Vista includes a tiny command line utility called clip. All it does is paste its stdin onto the clipboard. dir | clip echo hey | clip For the opposite direction, I use a little perl script: use Win32::Clipboard; print Win32::Clipboard::GetText();<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/16093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=16093"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/16093\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=16093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=16093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=16093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}