<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/10478" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2005-09-09T06:52:01-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/10478</id>

		<entry>
		<author><name><![CDATA[phab]]></name></author>
		<updated>2005-09-09T06:52:01-04:00</updated>

		<published>2005-09-09T06:52:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55513#p55513</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55513#p55513"/>
		<title type="html"><![CDATA[Need help with comparing two files...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55513#p55513"><![CDATA[
Thanks you. That's it ,-)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6630">phab</a> — Fri Sep 09, 2005 6:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-09T05:17:00-04:00</updated>

		<published>2005-09-09T05:17:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55510#p55510</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55510#p55510"/>
		<title type="html"><![CDATA[Need help with comparing two files...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55510#p55510"><![CDATA[
if your data is ordered by rank, there's no need of the first field<br><br>read the two files in 2 lists, then for each element of the first list compare its index to the same element's index in the second list (to find that index, use [lsearch])<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Sep 09, 2005 5:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[phab]]></name></author>
		<updated>2005-09-09T05:01:08-04:00</updated>

		<published>2005-09-09T05:01:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55509#p55509</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55509#p55509"/>
		<title type="html"><![CDATA[Need help with comparing two files...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55509#p55509"><![CDATA[
I can't get it working <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":-(" title="Sad"><br><br>I read the old-ranking file till it's eof.. but i dont know how to compare the right way <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>Any ideas?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6630">phab</a> — Fri Sep 09, 2005 5:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[phab]]></name></author>
		<updated>2005-09-09T02:35:04-04:00</updated>

		<published>2005-09-09T02:35:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55508#p55508</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55508#p55508"/>
		<title type="html"><![CDATA[Need help with comparing two files...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55508#p55508"><![CDATA[
Thank you. I'll give it a try! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"><br><br>For other suggestions: Thanks! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6630">phab</a> — Fri Sep 09, 2005 2:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-09-08T19:17:44-04:00</updated>

		<published>2005-09-08T19:17:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55477#p55477</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55477#p55477"/>
		<title type="html"><![CDATA[Need help with comparing two files...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55477#p55477"><![CDATA[
split them into a list like<br>[split $rankA \n] and [split $rankB \n]<br>after that you can compare them like<br>[lindex [split [lindex $rankA 0] |] 1] == [lindex [split [lindex $rankB 0] |] 1]<br>dont know if there is a more elegant way, maybe using it within a foreach loop compresses the code a bit.<br>if you have a missmatch, you can use lsearch to find the old/new rank.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Thu Sep 08, 2005 7:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[phab]]></name></author>
		<updated>2005-09-08T18:59:00-04:00</updated>

		<published>2005-09-08T18:59:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55476#p55476</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55476#p55476"/>
		<title type="html"><![CDATA[Need help with comparing two files...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55476#p55476"><![CDATA[
Hello guys.<br><br>I wrote something like a ranking (most active users).<br>I store them in a file which looks like:<br><br>01|phab<br>02|bot1<br>03|anotherone<br>04|nickname<br>05|sweety<br>...<br><br>I generate the stats each Sunday (for example). Now I want the bot to inform the channel with something like:<br><br>"Active Users v1.0: phab isn't place #1 anymore, nickname got him! phab is now on place 03. Sweety is more active than anotherone this week, too."<br><br>I hope you understand... I want to say which user is activer than the others and went up in my ranking.<br><br>Any ideas how I could handle this? At the moment I dont know... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":-(" title="Sad"><br><br>Please help!<br><br>Regards<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6630">phab</a> — Thu Sep 08, 2005 6:59 pm</p><hr />
]]></content>
	</entry>
	</feed>
