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

	<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-06-03T06:18:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-06-03T06:18:32-04:00</updated>

		<published>2003-06-03T06:18:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21173#p21173</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21173#p21173"/>
		<title type="html"><![CDATA[selecting a line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21173#p21173"><![CDATA[
p.s. - I'm also trying to get it so it dosn't repeat if the line of news hasn't changed since the last time it checked!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Tue Jun 03, 2003 6:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-06-03T06:14:48-04:00</updated>

		<published>2003-06-03T06:14:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21172#p21172</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21172#p21172"/>
		<title type="html"><![CDATA[selecting a line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21172#p21172"><![CDATA[
hi<br><br>I'm trying to pull a set line from a news txt file to msg the channel, but because the identifying line is [14], the script isn't detecting it...<br><br>bind pub - .cbsnews pub:readcbs<br><br>proc pub:readcbs { nick uhost handle channel arg } {<br> set cbs [open cbs.txt r]<br> set lines [split [read $cbs nonewline]]<br> close $cbs<br> set i [lsearch -glob $lines "$*\[14\]*"]<br> if {$i != -1} {<br>  putserv "PRIVMSG $channel :[lindex $lines $i]"<br> }<br>}<br><br>is this right to detect the [14] bit? also, is it possible to ignore some text in the line? specifically the date...but leaving in the stock code [AA]<br><br>Here's the original line in the txt file:<br><br>10:47pm 06/02/03 [[14]AA] ALCOA TO SELL S.AMERICAN PET BIZ FOR $75 MLN<br><br>what I'm trying to be left with is:<br><br>10:47pm [AA] ALCOA TO SELL S.AMERICAN PET BIZ FOR $75 MLN<br><br>thanks for any help in advance!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Tue Jun 03, 2003 6:14 am</p><hr />
]]></content>
	</entry>
	</feed>
