<?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>What I Learned Today &#187; commandline</title>
	<atom:link href="http://christiansons.net/mike/blog/tag/commandline/feed/" rel="self" type="application/rss+xml" />
	<link>http://christiansons.net/mike/blog</link>
	<description>Mike Christianson&#039;s journal of Java, Ant, SVN, Jetty, cygwin and other stuff.</description>
	<lastBuildDate>Wed, 04 Aug 2010 22:24:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Sort two files and compare, in one shot</title>
		<link>http://christiansons.net/mike/blog/2010/05/sort-two-files-and-compare-in-one-shot/</link>
		<comments>http://christiansons.net/mike/blog/2010/05/sort-two-files-and-compare-in-one-shot/#comments</comments>
		<pubDate>Fri, 14 May 2010 21:42:53 +0000</pubDate>
		<dc:creator>Mike Christianson</dc:creator>
				<category><![CDATA[commandline]]></category>
		<category><![CDATA[diff]]></category>

		<guid isPermaLink="false">http://christiansons.net/mike/blog/?p=457</guid>
		<description><![CDATA[At least once a week, I find myself wishing I could sort two files and compare them in one shot, from the commandline, without creating intermediate files. Today I&#8217;m glad to say I found my answer. Here are two examples: diff -y &#60;&#40;sort file1&#41; &#60;&#40;sort file2&#41; comm -3 &#60;&#40;sort file1&#41; &#60;&#40;sort file2&#41; See this wikipedia [...]]]></description>
			<content:encoded><![CDATA[<p>At least once a week, I find myself wishing I could sort two files and compare them in one shot, from the commandline, without creating intermediate files.  Today I&#8217;m glad to say I found my answer.</p>
<p>Here are two examples:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">diff</span> <span style="color: #660033;">-y</span> <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">sort</span> file1<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">sort</span> file2<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">comm</span> <span style="color: #660033;">-3</span> <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">sort</span> file1<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">sort</span> file2<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>See this wikipedia entry for a <a href="http://en.wikipedia.org/wiki/Comm#Comparison_to_diff">comparison of the <tt>diff</tt> and <tt>comm</tt> commands</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://christiansons.net/mike/blog/2010/05/sort-two-files-and-compare-in-one-shot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Better consoles for cygwin shells</title>
		<link>http://christiansons.net/mike/blog/2010/01/better-consoles-for-cygwin-shells/</link>
		<comments>http://christiansons.net/mike/blog/2010/01/better-consoles-for-cygwin-shells/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 17:00:29 +0000</pubDate>
		<dc:creator>Mike Christianson</dc:creator>
				<category><![CDATA[cygwin]]></category>
		<category><![CDATA[commandline]]></category>

		<guid isPermaLink="false">http://christiansons.net/mike/blog/?p=436</guid>
		<description><![CDATA[Let&#8217;s face it, cygwin is neat but the console it launches is lame. I&#8217;m not referring to bash, but rather the normal &#8212; and thus lame &#8212; Windows command box. Things just don&#8217;t feel right&#8230; some keys don&#8217;t work as expected and forget about making the window wider. Fortunately, there is a better way! Rather, [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s face it, cygwin is neat but the console it launches is lame.  I&#8217;m not referring to bash, but rather the normal &#8212; and thus lame &#8212; Windows command box.  Things just don&#8217;t feel right&#8230; some keys don&#8217;t work as expected and forget about making the window wider.  Fortunately, there is a better way!</p>
<p>Rather, I should say there are better way<em>s</em>: <a href="http://code.google.com/p/puttycyg/">puttycyg</a> and <a href="http://cygwin.com/cgi-bin2/package-grep.cgi?grep=mintty">mintty</a>.  </p>
<p><a href="http://www.smugmug.com/photos/770506088_uoPhz-L.png"><img alt="" src="http://www.smugmug.com/photos/770506088_uoPhz-S.png" title="mintty screenshot" class="aligncenter" width="400" height="269" /></a></p>
<p><a href="http://code.google.com/p/puttycyg/">puttycyg</a> is a patched version of <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">putty</a> with support for cygwin.  <a href="http://cygwin.com/cgi-bin2/package-grep.cgi?grep=mintty">mintty</a> is &#8230; well, yeah, it&#8217;s based on putty, too.</p>
<p>If you use cygwin, you owe it to yourself to try one or both of them immediately.  And by that I mean stop reading and start downloading.  Now.</p>
]]></content:encoded>
			<wfw:commentRss>http://christiansons.net/mike/blog/2010/01/better-consoles-for-cygwin-shells/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
