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

	<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>2001-10-16T13:15:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-10-16T13:15:00-04:00</updated>

		<published>2001-10-16T13:15:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=676#p676</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=676#p676"/>
		<title type="html"><![CDATA[getting a certain string from a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=676#p676"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc getnick {file line} {  if {[catch {open "${file}" r} fp]} {    return -1  }  set _T ""  while {![eof $fp]} {    lappend _T [gets $fp]  }  close $fp  if {[llength $_T] &lt; $line} {    return -1  }  return [lindex [split [lindex $_T [expr $line - 1]]] 0]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Oct 16, 2001 1:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-16T12:39:00-04:00</updated>

		<published>2001-10-16T12:39:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=671#p671</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=671#p671"/>
		<title type="html"><![CDATA[getting a certain string from a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=671#p671"><![CDATA[
i want to get the nickname by providing a line number. <p>Statistics: Posted by Guest — Tue Oct 16, 2001 12:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-10-16T12:37:00-04:00</updated>

		<published>2001-10-16T12:37:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=670#p670</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=670#p670"/>
		<title type="html"><![CDATA[getting a certain string from a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=670#p670"><![CDATA[
It depends how you wish to obtain the details.<br><br>Do you wish to get the line number by looking up a given nickname?<br><br>or get a nickname aby giving a line number?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Oct 16, 2001 12:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-16T12:24:00-04:00</updated>

		<published>2001-10-16T12:24:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=666#p666</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=666#p666"/>
		<title type="html"><![CDATA[getting a certain string from a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=666#p666"><![CDATA[
Ok, let's say i have a filename that consists of nicknames and hostnames like this:<br><br>nick host<br>nick host<br>etc.<br><br>How can i get a specific line number from the file, and the matching nick.  For example, get the first word (=nick) on line 3.<p>Statistics: Posted by Guest — Tue Oct 16, 2001 12:24 pm</p><hr />
]]></content>
	</entry>
	</feed>
