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

	<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>2003-12-03T09:24:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-03T09:24:05-04:00</updated>

		<published>2003-12-03T09:24:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31024#p31024</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31024#p31024"/>
		<title type="html"><![CDATA[glob question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31024#p31024"><![CDATA[
ok tnx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Dec 03, 2003 9:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-03T05:21:05-04:00</updated>

		<published>2003-12-03T05:21:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31018#p31018</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31018#p31018"/>
		<title type="html"><![CDATA[lol]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31018#p31018"><![CDATA[
I seem to have solved your problem without understanding what it was <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"><br>I thought your problem was having the backslashes in your windows paths replaced by forward slashes in the result.<br><br>Here's the answer to your real question: glob returns a LIST of files. DON'T split lists unless you want to mess them up. 'split' is for converting STRINGS to lists. OK? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Dec 03, 2003 5:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-02T15:50:48-04:00</updated>

		<published>2003-12-02T15:50:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31003#p31003</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31003#p31003"/>
		<title type="html"><![CDATA[glob question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31003#p31003"><![CDATA[
Thank u so mutch it works yay<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Dec 02, 2003 3:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-02T15:14:17-04:00</updated>

		<published>2003-12-02T15:14:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31001#p31001</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31001#p31001"/>
		<title type="html"><![CDATA[glob question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31001#p31001"><![CDATA[
How about this then? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><div class="codebox"><p>Code: </p><pre><code>foreach file [glob -nocomplain -type d $dccpath*] {  putdcc $idx [file nativename $file]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Dec 02, 2003 3:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-02T15:10:51-04:00</updated>

		<published>2003-12-02T15:10:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31000#p31000</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31000#p31000"/>
		<title type="html"><![CDATA[glob question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31000#p31000"><![CDATA[
could u give some explanation what ur getting to ?? cause i realy don't get what i am supposed to do with that !! if its the c:\ u wana looze don't bother i know how i want vlist not hlist v = vertical .. cause ive read most of the stuff in the manual its not that i read it that i completly understand some off that stuff is to technical for me so .. maybe little xplanation where how to use it so i know what u mean there is like 50 places where i can use that stuff .. but i am still not sur what i am supposed to do with it ..  and yes i read it 5 times allready before posting this still have no clue, also i will read it 50 times after ive posted this but i don't think i will get any wizer unless u give me some xplaination ..? but tnx for ur answer ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Dec 02, 2003 3:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-02T14:53:49-04:00</updated>

		<published>2003-12-02T14:53:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30995#p30995</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30995#p30995"/>
		<title type="html"><![CDATA[glob question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30995#p30995"><![CDATA[
<a href="http://tcl.tk/man/tcl8.4/TclCmd/file.htm#M24" class="postlink">file nativename</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Dec 02, 2003 2:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-02T14:44:29-04:00</updated>

		<published>2003-12-02T14:44:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30992#p30992</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30992#p30992"/>
		<title type="html"><![CDATA[glob question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30992#p30992"><![CDATA[
current out put <br><br>list : c:\test c:\test2 ...<br>i watn vertical list out put<br><br>list: <br><br>c:\test<br>c:\test2<br><br>several ways of doing this .. <br><br>like <br><blockquote class="uncited"><div>output without foreach<br><br>c:/backupdump c:/cygwin {c:/Documents and Settings} c:/dump c:/eggdrop c:/lcc c:/Perl {c:/Program Files} c:/swsetup c:/temp c:/WINDOWS</div></blockquote><div class="codebox"><p>Code: </p><pre><code>set dccpath c:\\catch { glob -type d $dccpath* } dirlistforeach line [split $dirlist \x20] {  putdcc $idx $line}</code></pre></div><blockquote class="uncited"><div>output: <br><br>[19:05] &lt;Eggy&gt; c:/backupdump<br>[19:05] &lt;Eggy&gt; c:/cygwin<br>[19:05] &lt;Eggy&gt; {c:/Documents<br>[19:05] &lt;Eggy&gt; and<br>[19:05] &lt;Eggy&gt; Settings}<br>[19:05] &lt;Eggy&gt; c:/dump<br>[19:05] &lt;Eggy&gt; c:/eggdrop<br>[19:05] &lt;Eggy&gt; c:/lcc<br>[19:05] &lt;Eggy&gt; c:/Perl<br>[19:05] &lt;Eggy&gt; {c:/Program<br>[19:05] &lt;Eggy&gt; Files}<br>[19:05] &lt;Eggy&gt; c:/swsetup<br>[19:05] &lt;Eggy&gt; c:/temp<br>[19:05] &lt;Eggy&gt; c:/WINDOWS</div></blockquote>see my problem first of all = &gt; dir contains spaces like "program files" it has chars {} also if i split on \x20 = &gt; the output is messedup ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Dec 02, 2003 2:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-02T14:41:21-04:00</updated>

		<published>2003-12-02T14:41:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30991#p30991</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30991#p30991"/>
		<title type="html"><![CDATA[glob question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30991#p30991"><![CDATA[
the glob works<br><br><br>i just want the output to be different<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Dec 02, 2003 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-12-02T14:38:58-04:00</updated>

		<published>2003-12-02T14:38:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30990#p30990</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30990#p30990"/>
		<title type="html"><![CDATA[glob question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30990#p30990"><![CDATA[
Try setting the dccpath to c://<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Dec 02, 2003 2:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-02T14:40:44-04:00</updated>

		<published>2003-12-02T14:37:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30989#p30989</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30989#p30989"/>
		<title type="html"><![CDATA[glob question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30989#p30989"><![CDATA[
? have u read my question ?? if i set path to c:\\ = c:/ if i would add an extra / then it would result that it might or migth not work its not the glob that doesn't work i wana reformat the out put just not sur on how to do that .. <br><br>set dccpath c:\\<br><br>result is that it is in one strint and i wana replace \x20 &lt;space&gt; by \n <br><br>cause it is a list ... i did this with foreach (split on space) and it works but .. some dirs contain spaces and get out puted like this {c:/directory name} in the list also how do i remove these {} it has nothing to do with / char ..<br><br>tnx for trying tho .. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> and sorry if u missunderstood the question then its my falt :p for not making my self clear .. enough i gues ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Dec 02, 2003 2:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-12-02T12:44:49-04:00</updated>

		<published>2003-12-02T12:44:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30987#p30987</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30987#p30987"/>
		<title type="html"><![CDATA[glob question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30987#p30987"><![CDATA[
try with:<div class="codebox"><p>Code: </p><pre><code>catch { glob -type d $dccpath/* } dirlist</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Dec 02, 2003 12:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-02T09:43:10-04:00</updated>

		<published>2003-12-02T09:43:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30978#p30978</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30978#p30978"/>
		<title type="html"><![CDATA[glob question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30978#p30978"><![CDATA[
hello all got question allready been reading tcl manual and looking at glob examples, my question is simple how do i print dirs out hmm like vdir or ls -all or just plan dir in windows envirement ..? also how do i get rid off {} when a dir contains spaces ..? <br><br>dccpath is set to c:\\<br><div class="codebox"><p>Code: </p><pre><code>catch { glob -type d $dccpath* } dirlist</code></pre></div>result<br>c:/backupdump c:/cygwin {c:/Documents and Settings} c:/dump c:/eggdrop c:/lcc c:/Perl {c:/Program Files} c:/swsetup c:/temp c:/WINDOWS<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Dec 02, 2003 9:43 am</p><hr />
]]></content>
	</entry>
	</feed>
