<?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>And now here&#039;s something… &#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>Java, Ant, SVN, Jetty, cygwin and other stuff…</description>
	<lastBuildDate>Fri, 02 Dec 2011 16:53:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Generic socket server for testing</title>
		<link>http://christiansons.net/mike/blog/2010/10/generic-socket-server-for-testing/</link>
		<comments>http://christiansons.net/mike/blog/2010/10/generic-socket-server-for-testing/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 17:34:49 +0000</pubDate>
		<dc:creator>Mike Christianson</dc:creator>
				<category><![CDATA[commandline]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[socat]]></category>

		<guid isPermaLink="false">http://christiansons.net/mike/blog/?p=593</guid>
		<description><![CDATA[Here&#8217;s a useful one-liner for running a generic socket server. I came up with this socat-based alternative to writing my own for testing client output. It listens on port 4096, accepts TCP/IP connections, and prints input received to stdout. socat TCP-L:4096,fork - Socat is quite powerful, be sure to read more about what it can <a href='http://christiansons.net/mike/blog/2010/10/generic-socket-server-for-testing/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a useful one-liner for running a generic socket server. I came up with this <a href="http://www.dest-unreach.org/socat/">socat</a>-based alternative to writing my own for testing client output. It listens on port <tt>4096</tt>, accepts TCP/IP connections, and prints input received to <tt>stdout</tt>.</p>
<pre>socat TCP-L:4096,fork -</pre>
<p><tt><a href="http://www.dest-unreach.org/socat/">Socat</a></tt> is quite powerful, be sure to read more about what it can do.</p>
<p><strong>2011-July-08</strong>: My coworker has a great post showing how <tt>socat</tt> can <a href="http://dollopofdesi.blogspot.com/2011/07/routing-serial-data-to-socket.html">pipe data from a serial port to a socket</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://christiansons.net/mike/blog/2010/10/generic-socket-server-for-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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]]></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>
<pre>
diff -y <(sort file1) <(sort file2)
</pre>
<pre>
comm -3 <(sort file1) <(sort file2)
</pre>
<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[2011-Nov-24: Exciting news! mintty is now the default cygwin shell. …mintty has become part of the default installation, setup will create desktop and start menu shortcuts called &#8220;Cygwin Terminal&#8221;, which point to mintty, starting your default shell as noted in /etc/passwd. Let&#8217;s face it, cygwin is neat but the console (or, terminal emulator, if you <a href='http://christiansons.net/mike/blog/2010/01/better-consoles-for-cygwin-shells/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><em>2011-Nov-24</em>: Exciting news! <a href="http://cygwin.com/ml/cygwin-announce/2011-11/msg00043.html">mintty is now the default cygwin shell</a>.</p>
<blockquote><p>…mintty has become part of the default installation, setup will<br />
create desktop and start menu shortcuts called &#8220;Cygwin Terminal&#8221;, which<br />
point to mintty, starting your default shell as noted in /etc/passwd.</p></blockquote>
<p>Let&#8217;s face it, cygwin is neat but the console (or, terminal emulator, if you prefer) it launches is <em>lame</em>. 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>,&nbsp;<a href="http://sourceforge.net/projects/console/">Console2</a>, and my personal favorite,&nbsp;<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 class="aligncenter" title="mintty screenshot" src="http://www.smugmug.com/photos/770506088_uoPhz-S.png" alt="" 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 all 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>2</slash:comments>
		</item>
	</channel>
</rss>

