<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Linux is amazingly useful</title>
	<atom:link href="http://www.doctort.org/adam/general/linux-is-amazingly-useful.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.doctort.org/adam/general/linux-is-amazingly-useful.html</link>
	<description>Maker of Finest Quality Digital Things</description>
	<lastBuildDate>Wed, 20 Apr 2011 06:42:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Tom</title>
		<link>http://www.doctort.org/adam/general/linux-is-amazingly-useful.html/comment-page-1#comment-14210</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 23 Dec 2008 20:39:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.doctort.org/adam/?p=297#comment-14210</guid>
		<description>Aaaargh - pedant alert.

All of those things can be done with almost any UNIX-like OS, including the amazing FreeBSD. Personally, I&#039;d say FreeBSD is better, because it actually comes with netcat as part of the base OS :)

As for xargs/find, it is truly awesome. I think spending a day learning and practising find/xargs combos is essential for the noobies. Hmm, I&#039;ll just go add that to our onboarding plan...
Expanding that find to work with files that have spaces in their paths/filenames is a little bit trickier, but a cool trick (made necessary due to grep -l not having a null separated output :)

find /usr/src -type f -name &#039;Makefile&#039; -print0 &#124; xargs -0 grep -Fl &#039;1.6&#039; &#124; tr &#039;\n&#039; &#039;&#039; &#124; xargs -0 kate

The only thing really wrong with that line now in my mind, is that &#039;vim&#039; has been incorrectly spelled &#039;kate&#039; :)</description>
		<content:encoded><![CDATA[<p>Aaaargh &#8211; pedant alert.</p>
<p>All of those things can be done with almost any UNIX-like OS, including the amazing FreeBSD. Personally, I&#8217;d say FreeBSD is better, because it actually comes with netcat as part of the base OS :)</p>
<p>As for xargs/find, it is truly awesome. I think spending a day learning and practising find/xargs combos is essential for the noobies. Hmm, I&#8217;ll just go add that to our onboarding plan&#8230;<br />
Expanding that find to work with files that have spaces in their paths/filenames is a little bit trickier, but a cool trick (made necessary due to grep -l not having a null separated output :)</p>
<p>find /usr/src -type f -name &#8216;Makefile&#8217; -print0 | xargs -0 grep -Fl &#8217;1.6&#8242; | tr &#8216;\n&#8217; &#8221; | xargs -0 kate</p>
<p>The only thing really wrong with that line now in my mind, is that &#8216;vim&#8217; has been incorrectly spelled &#8216;kate&#8217; :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.doctort.org/adam/general/linux-is-amazingly-useful.html/comment-page-1#comment-14199</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 10 Dec 2008 03:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.doctort.org/adam/?p=297#comment-14199</guid>
		<description>Apparently socat is the new king in town, surpassing netcat. I have still to grok socat in fullness, but it seems sweet.

http://www.dest-unreach.org/socat/</description>
		<content:encoded><![CDATA[<p>Apparently socat is the new king in town, surpassing netcat. I have still to grok socat in fullness, but it seems sweet.</p>
<p><a href="http://www.dest-unreach.org/socat/" rel="nofollow">http://www.dest-unreach.org/socat/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.doctort.org/adam/general/linux-is-amazingly-useful.html/comment-page-1#comment-14198</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Tue, 09 Dec 2008 15:24:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.doctort.org/adam/?p=297#comment-14198</guid>
		<description>At first I was wondering what you used to receive the disk&#039;s contents...but then I realized...netcat! Linux is amazing.

With some more code, you could use KDE&#039;s DCOP to further automate amazing thing #2. I&#039;ve been using it recently to auto reload a PDF I&#039;m working on that KDPF for some reason doesn&#039;t want to reload automatically when the file changes. Once kate is running, you could invoke DCOP to script kate to do certain things, if the interfaces are exposed. I just spent two minutes tab-completing $dcop kate... to see what&#039;s available, and I could get kate to search, but not to seek to the match. hmm.</description>
		<content:encoded><![CDATA[<p>At first I was wondering what you used to receive the disk&#8217;s contents&#8230;but then I realized&#8230;netcat! Linux is amazing.</p>
<p>With some more code, you could use KDE&#8217;s DCOP to further automate amazing thing #2. I&#8217;ve been using it recently to auto reload a PDF I&#8217;m working on that KDPF for some reason doesn&#8217;t want to reload automatically when the file changes. Once kate is running, you could invoke DCOP to script kate to do certain things, if the interfaces are exposed. I just spent two minutes tab-completing $dcop kate&#8230; to see what&#8217;s available, and I could get kate to search, but not to seek to the match. hmm.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

