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

	<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-03-04T14:00:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-04T14:00:31-04:00</updated>

		<published>2005-03-04T14:00:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47167#p47167</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47167#p47167"/>
		<title type="html"><![CDATA[sort a file, spaces to new line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47167#p47167"><![CDATA[
sorry, didnt pay too much attention to the " {1,}" expression, since it never worked that way I liked <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">. my regsubs with RE never replaced anything <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">. but this one works, sorry for bother.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Mar 04, 2005 2:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-04T12:33:35-04:00</updated>

		<published>2005-03-04T12:33:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47166#p47166</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47166#p47166"/>
		<title type="html"><![CDATA[sort a file, spaces to new line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47166#p47166"><![CDATA[
<blockquote class="uncited"><div>trim will only remove leading and trailing spaces, best will probably be if you first just [split $list] and then you will get a few empty list entrys which can be delted within a for loop and lreplace and all left is a clean, safe list of the names.<br><br>to show what split does:<div class="codebox"><p>Code: </p><pre><code>[14:15:03] tcl: evaluate (.tcl): split "name1   name2\nname3"Tcl: name1 {} {} name2 name3</code></pre></div></div></blockquote>you didn't bother to test that regsub, did you? <br><br>it takes care of arbitrary number of spaces in-between, and [string trim] takes care of leading and trailing spaces - just what that guy needs, nothing more, nothing less<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Mar 04, 2005 12:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-04T09:14:21-04:00</updated>

		<published>2005-03-04T09:14:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47157#p47157</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47157#p47157"/>
		<title type="html"><![CDATA[sort a file, spaces to new line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47157#p47157"><![CDATA[
trim will only remove leading and trailing spaces, best will probably be if you first just [split $list] and then you will get a few empty list entrys which can be delted within a for loop and lreplace and all left is a clean, safe list of the names.<br><br>to show what split does:<div class="codebox"><p>Code: </p><pre><code>[14:15:03] tcl: evaluate (.tcl): split "name1   name2\nname3"Tcl: name1 {} {} name2 name3</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Mar 04, 2005 9:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-04T03:09:25-04:00</updated>

		<published>2005-03-04T03:09:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47150#p47150</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47150#p47150"/>
		<title type="html"><![CDATA[sort a file, spaces to new line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47150#p47150"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>string map {" " "\n"} "name1 name2"</code></pre></div>or, better yet<div class="codebox"><p>Code: </p><pre><code>regsub -all " {1,}" [string trim "  name1 name2   name3 "] "\n"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Mar 04, 2005 3:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Burke]]></name></author>
		<updated>2005-03-03T20:46:54-04:00</updated>

		<published>2005-03-03T20:46:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47146#p47146</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47146#p47146"/>
		<title type="html"><![CDATA[sort a file, spaces to new line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47146#p47146"><![CDATA[
hi<br><br>i have a file with names like:<br><div class="codebox"><p>Code: </p><pre><code>name1 name2  name3     name4name 5 name6  name6  name8 name9 name10  name11 name 11</code></pre></div>i want to remove the spaces. for every space, a new line.<br><br>how to set a var to my paste here i know. (open file etc.)<br>or how i can close file and save.<br><br>but i have no idea which commands will help me to make the " " or "   " to a new line.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5969">Burke</a> — Thu Mar 03, 2005 8:46 pm</p><hr />
]]></content>
	</entry>
	</feed>
