<?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>Meandering Life! &#187; mapreduce</title>
	<atom:link href="http://manku.thimma.org/tag/mapreduce/feed/" rel="self" type="application/rss+xml" />
	<link>http://manku.thimma.org</link>
	<description>Hither, Thither ...</description>
	<lastBuildDate>Sat, 21 Jan 2012 06:07:03 +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>Crazy shell scripting</title>
		<link>http://manku.thimma.org/2009/04/crazy-shell-scripting/</link>
		<comments>http://manku.thimma.org/2009/04/crazy-shell-scripting/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 11:37:50 +0000</pubDate>
		<dc:creator>shashi</dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[mapreduce]]></category>
		<category><![CDATA[mysql duplicates]]></category>
		<category><![CDATA[oneliner]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://manku.thimma.org/?p=61</guid>
		<description><![CDATA[Not quite a mapreduce implementation , but nevertheless &#8230; while read l; do echo "SELECT id, email FROM tblName WHERE email='$l' ORDER by id DESC LIMIT 1;"&#124;mysql -u root dbName; done &#60; /tmp/dupes3.txt &#124;grep -v 'email'&#124;cut -f1&#124;sed 's/^\(.*\)$/DELETE FROM tblName &#8230; <a href="http://manku.thimma.org/2009/04/crazy-shell-scripting/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Not quite a <noindex><a href="http://blog.last.fm/2009/04/06/mapreduce-bash-script">mapreduce implementation</a></noindex> <img src='http://manku.thimma.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> , but nevertheless &#8230;</p>
<p><code>while read l; do echo "SELECT id, email FROM tblName WHERE email='$l' ORDER by id DESC LIMIT 1;"|mysql -u root dbName; done &lt; /tmp/dupes3.txt |grep -v 'email'|cut -f1|sed 's/^\(.*\)$/DELETE FROM tblName WHERE id=\1;/g' &gt; /tmp/deletedupes3.sql</code></p>
]]></content:encoded>
			<wfw:commentRss>http://manku.thimma.org/2009/04/crazy-shell-scripting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

