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

	<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>2010-08-27T05:44:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Huko]]></name></author>
		<updated>2010-08-27T05:44:02-04:00</updated>

		<published>2010-08-27T05:44:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94137#p94137</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94137#p94137"/>
		<title type="html"><![CDATA[Crontab sort out file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94137#p94137"><![CDATA[
Thank you very much tomekkk, you've been really helpful <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11240">Huko</a> — Fri Aug 27, 2010 5:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2010-08-27T05:03:01-04:00</updated>

		<published>2010-08-27T05:03:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94136#p94136</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94136#p94136"/>
		<title type="html"><![CDATA[Crontab sort out file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94136#p94136"><![CDATA[
yes, the result will not be the same, cause the number of arguments is bigger than before, you didnt't write it before...<br><br>change -f5- to -f6- but in this case this will not work for previous example,<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Fri Aug 27, 2010 5:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Huko]]></name></author>
		<updated>2010-08-27T04:43:07-04:00</updated>

		<published>2010-08-27T04:43:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94134#p94134</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94134#p94134"/>
		<title type="html"><![CDATA[Crontab sort out file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94134#p94134"><![CDATA[
I wrote exactly what you wrote, but I didn't get the same result, theres another part it needs to remove.<br><blockquote class="uncited"><div>1 10/19/2009 16:41:19 #shishkebab Tony [17:21] &lt;+saethr&gt; usa owns kuwait | [17:21] &lt;+Ropaz^&gt; lol where do you know that? | [17:21] &lt;+Ropaz^&gt; kuwait is a state on iraq | [17:22] &lt;+Ropaz^&gt; its like Lyon in france</div></blockquote>Tony &lt;-= the person who added the quote, I need that removed too..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11240">Huko</a> — Fri Aug 27, 2010 4:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2010-08-27T04:33:46-04:00</updated>

		<published>2010-08-27T04:33:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94133#p94133</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94133#p94133"/>
		<title type="html"><![CDATA[Crontab sort out file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94133#p94133"><![CDATA[
this is an example, test.txt is a source file, after '&gt;' is a destination file, you can put there whatever you want<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Fri Aug 27, 2010 4:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Huko]]></name></author>
		<updated>2010-08-27T04:23:17-04:00</updated>

		<published>2010-08-27T04:23:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94132#p94132</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94132#p94132"/>
		<title type="html"><![CDATA[Crontab sort out file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94132#p94132"><![CDATA[
So I put all the quotes i want it to sort out in test.txt?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11240">Huko</a> — Fri Aug 27, 2010 4:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2010-08-27T03:30:34-04:00</updated>

		<published>2010-08-27T03:30:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94130#p94130</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94130#p94130"/>
		<title type="html"><![CDATA[Crontab sort out file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94130#p94130"><![CDATA[
script?<br><br>run simple shell command:<div class="codebox"><p>Code: </p><pre><code>tomekk@tweety:~# cat test.txt1 10/19/2009 16:41:19 #shishkebab [17:21] &lt;+saethr&gt; usa owns kuwait | [17:21] &lt;+Ropaz^&gt; lol where do you know that? | [17:21] &lt;+Ropaz^&gt; kuwait is a state on iraq | [17:22] &lt;+Ropaz^&gt; its like Lyon in france2 10/19/2009 16:41:19 #shishkebab [17:21] &lt;+saethr&gt; usa owns kuwait | [17:21] &lt;+Ropaz^&gt; lol where do you know that? | [17:21] &lt;+Ropaz^&gt; kuwait is a state on iraq | [17:22] &lt;+Ropaz^&gt; its like Lyon in france2341 10/19/2009 16:41:19 #shishkebab [17:21] &lt;+saethr&gt; usa owns kuwait | [17:21] &lt;+Ropaz^&gt; lol where do you know that? | [17:21] &lt;+Ropaz^&gt; kuwait is a state on iraq | [17:22] &lt;+Ropaz^&gt; its like Lyon in france</code></pre></div><div class="codebox"><p>Code: </p><pre><code>tomekk@tweety:~# cat test.txt | cut -d " " -f5- &gt; quoteupload.txt</code></pre></div><div class="codebox"><p>Code: </p><pre><code>tomekk@tweety:~# cat quoteupload.txt[17:21] &lt;+saethr&gt; usa owns kuwait | [17:21] &lt;+Ropaz^&gt; lol where do you know that? | [17:21] &lt;+Ropaz^&gt; kuwait is a state on iraq | [17:22] &lt;+Ropaz^&gt; its like Lyon in france[17:21] &lt;+saethr&gt; usa owns kuwait | [17:21] &lt;+Ropaz^&gt; lol where do you know that? | [17:21] &lt;+Ropaz^&gt; kuwait is a state on iraq | [17:22] &lt;+Ropaz^&gt; its like Lyon in france[17:21] &lt;+saethr&gt; usa owns kuwait | [17:21] &lt;+Ropaz^&gt; lol where do you know that? | [17:21] &lt;+Ropaz^&gt; kuwait is a state on iraq | [17:22] &lt;+Ropaz^&gt; its like Lyon in france</code></pre></div>crontab -e and go on,<br>cheers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Fri Aug 27, 2010 3:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Huko]]></name></author>
		<updated>2010-08-27T03:12:23-04:00</updated>

		<published>2010-08-27T03:12:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94129#p94129</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94129#p94129"/>
		<title type="html"><![CDATA[Crontab sort out file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94129#p94129"><![CDATA[
I`m using <a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=1480" class="postlink">public_quotes.tcl</a>, when you add a quote it adds it to "/home/user/eggdrop/quotes.db" in the form of:<br><br>#Quotenumber Date Time #Channel Who-Added-the-quote Quote<br><br>Example:<br><br>1 10/19/2009 16:41:19 #shishkebab [17:21] &lt;+saethr&gt; usa owns kuwait | [17:21] &lt;+Ropaz^&gt; lol where do you know that? | [17:21] &lt;+Ropaz^&gt; kuwait is a state on iraq | [17:22] &lt;+Ropaz^&gt; its like Lyon in france<br><br>I could really need a script that once a day, scans that file and makes a new file in that folder called "quoteupload.txt" - the script should remove the all the necessary details except for the quote itself.<br><br>So if the quote was:<br><blockquote class="uncited"><div>1 10/19/2009 16:41:19 #shishkebab [17:21] &lt;+saethr&gt; usa owns kuwait | [17:21] &lt;+Ropaz^&gt; lol where do you know that? | [17:21] &lt;+Ropaz^&gt; kuwait is a state on iraq | [17:22] &lt;+Ropaz^&gt; its like Lyon in france</div></blockquote>The script will make a new file with this output:<blockquote class="uncited"><div> [17:21] &lt;+saethr&gt; usa owns kuwait | [17:21] &lt;+Ropaz^&gt; lol where do you know that? | [17:21] &lt;+Ropaz^&gt; kuwait is a state on iraq | [17:22] &lt;+Ropaz^&gt; its like Lyon in france</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11240">Huko</a> — Fri Aug 27, 2010 3:12 am</p><hr />
]]></content>
	</entry>
	</feed>
