Not quite a mapreduce implementation , but nevertheless … while read l; do echo “SELECT id, email FROM tblName WHERE email=’$l’ ORDER by id DESC LIMIT 1;”|mysql -u root dbName; done < /tmp/dupes3.txt |grep -v ‘email’|cut -f1|sed ‘s/^\(.*\)$/DELETE FROM tblName … Continue reading
April 14, 2009
by shashi
2 Comments