<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jetpack Flight Log &#187; pbcopy</title>
	<atom:link href="http://jetpackweb.com/blog/tags/pbcopy/feed/" rel="self" type="application/rss+xml" />
	<link>http://jetpackweb.com/blog</link>
	<description>Rock{et}ing the interweb</description>
	<lastBuildDate>Wed, 19 May 2010 22:21:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>pbcopy / pbpaste in Ubuntu (command line clipboard)</title>
		<link>http://jetpackweb.com/blog/2009/09/23/pbcopy-in-ubuntu-command-line-clipboard/</link>
		<comments>http://jetpackweb.com/blog/2009/09/23/pbcopy-in-ubuntu-command-line-clipboard/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 19:13:30 +0000</pubDate>
		<dc:creator>Brian Racer</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[pbcopy]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://jetpackweb.com/blog/?p=401</guid>
		<description><![CDATA[OS X has a neat command-line tool called pbcopy which takes the standard input and places it in the clipboard to paste into other applications. In Ubuntu(or any Linux distro with Xwindows), a similar tool is xclip. I like to make this alias: alias pbcopy='xclip -selection clipboard' alias pbpaste='xclip -selection clipboard -o' or the following [...]]]></description>
			<content:encoded><![CDATA[<p>OS X has a neat command-line tool called pbcopy which takes the standard input and places it in the clipboard to paste into other applications.</p>
<p>In Ubuntu(or any Linux distro with Xwindows), a similar tool is <strong>xclip</strong>. I like to make this alias:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family: Monaco, monospace;"><span class="kw3">alias</span> <span class="re2">pbcopy</span>=<span class="st_h">'xclip -selection clipboard'</span>
<span class="kw3">alias</span> <span class="re2">pbpaste</span>=<span class="st_h">'xclip -selection clipboard -o'</span></pre></div></div>

<p>or the following also works if you would rather use <strong>xsel</strong>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family: Monaco, monospace;"><span class="kw3">alias</span> <span class="re2">pbcopy</span>=<span class="st_h">'xsel --clipboard --input'</span>
<span class="kw3">alias</span> <span class="re2">pbpaste</span>=<span class="st_h">'xsel --clipboard --output'</span></pre></div></div>

<p>Now you can pipe any text to <strong>pbcopy</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family: Monaco, monospace;">$ <span class="kw2">cat</span> ~<span class="sy0">/</span>.ssh<span class="sy0">/</span>id_dsa.pub <span class="sy0">|</span> pbcopy</pre></div></div>

<p>Your public ssh key is transferred to your clipboard and is ready to be pasted(perhaps with pbpaste).</p>
]]></content:encoded>
			<wfw:commentRss>http://jetpackweb.com/blog/2009/09/23/pbcopy-in-ubuntu-command-line-clipboard/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
