<?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/13573" />

	<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>2007-06-22T04:10:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Zircon]]></name></author>
		<updated>2007-06-22T04:10:54-04:00</updated>

		<published>2007-06-22T04:10:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73773#p73773</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73773#p73773"/>
		<title type="html"><![CDATA[Tcl Script for Sorting lines in File]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73773#p73773"><![CDATA[
Hello Sir_Fz<br><br>      Thanks very much for your help, your script is fully working  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8115">Zircon</a> — Fri Jun 22, 2007 4:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-21T20:14:31-04:00</updated>

		<published>2007-06-21T20:14:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73749#p73749</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73749#p73749"/>
		<title type="html"><![CDATA[Tcl Script for Sorting lines in File]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73749#p73749"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc trivsort {} { putlog "starting sorting......." set triv [lsort [split [read [set f [open input.txt]]] \n]][close $f] set f [open output.txt w] puts $f [join $triv \n] close $f putlog "sorting done.."}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Jun 21, 2007 8:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zircon]]></name></author>
		<updated>2007-06-07T16:15:29-04:00</updated>

		<published>2007-06-07T16:15:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73333#p73333</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73333#p73333"/>
		<title type="html"><![CDATA[Tcl Script for Sorting lines in File]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73333#p73333"><![CDATA[
Hi all<br><br>    Thanks Sir_Fz for this hint. Unfortnately i don't know tcl, but i have a piece of code that can be a good start if some 1 can help to modify it to what i want. I think this code sorts the input file and make everything in a sigle line, like if we give it a c b in separate lines, it will return a b c in a single line in the output file. Me, i want to sort the file, but keep them in separate lines. <br><br><br>proc trivsort {} {<br>       putlog "starting sorting......."<br>       set f [open "input.txt" r]<br>       set triv [read $f]<br>       close $f<br>       set trivlist [split $triv "\n"]<br>       unset triv<br>       lsort -increasing $trivlist<br>       set f [open "output.txt" w]<br>       puts $f $trivlist<br>       close $f<br>       putlog "sorting done.."<br>}<br><br>Thanks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8115">Zircon</a> — Thu Jun 07, 2007 4:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-07T14:54:42-04:00</updated>

		<published>2007-06-07T14:54:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73327#p73327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73327#p73327"/>
		<title type="html"><![CDATA[Tcl Script for Sorting lines in File]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73327#p73327"><![CDATA[
Use the [lsort] Tcl-command to sort a list.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Jun 07, 2007 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zircon]]></name></author>
		<updated>2007-06-07T14:36:12-04:00</updated>

		<published>2007-06-07T14:36:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73322#p73322</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73322#p73322"/>
		<title type="html"><![CDATA[Tcl Script for Sorting lines in File]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73322#p73322"><![CDATA[
Hi all<br><br>     i m lookin for a TCL script that can produce an output file by sorting the lines of an input file. The input file is a Trivia file.<br><br>Can some1 help me ? Thanks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8115">Zircon</a> — Thu Jun 07, 2007 2:36 pm</p><hr />
]]></content>
	</entry>
	</feed>
