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

	<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>2002-05-27T01:13:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-05-27T01:13:00-04:00</updated>

		<published>2002-05-27T01:13:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7280#p7280</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7280#p7280"/>
		<title type="html"><![CDATA[find and replace (tcl)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7280#p7280"><![CDATA[
Read in the file, split it with 'split', and then use lsearch and lreplace to find and replace it. Then rewrite the file with the new data.<br><br>If you're only using that file to store date you use in your script, there are other file formats that would make the process easier.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon May 27, 2002 1:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-26T17:56:00-04:00</updated>

		<published>2002-05-26T17:56:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7275#p7275</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7275#p7275"/>
		<title type="html"><![CDATA[find and replace (tcl)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7275#p7275"><![CDATA[
what is the best method for tcl scripting to find a specific position and replace it in an saved file which consists of few lines.<br><br>would be nice if someone can reply an complete example for this, the "7" is to be replaced:<br><br>1;2;3;4<br>5;6;7;8<br>9;10;11;12<br><br><br>thx<p>Statistics: Posted by Guest — Sun May 26, 2002 5:56 pm</p><hr />
]]></content>
	</entry>
	</feed>
