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

	<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>2012-08-21T04:22:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2012-08-21T04:22:24-04:00</updated>

		<published>2012-08-21T04:22:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99914#p99914</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99914#p99914"/>
		<title type="html"><![CDATA[Count number of lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99914#p99914"><![CDATA[
Works, thank you!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Tue Aug 21, 2012 4:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doggo]]></name></author>
		<updated>2012-08-20T17:00:13-04:00</updated>

		<published>2012-08-20T17:00:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99906#p99906</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99906#p99906"/>
		<title type="html"><![CDATA[Count number of lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99906#p99906"><![CDATA[
give this a try, not tested but should do the trick <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !count count:numoflinesproc count:numoflines {nick host hand chan text} {set fname [lindex [split $text] 0]set loc "scripts"#check file existsif {![file exists $loc/$fname]} {puthelp "PRIVMSG $chan :$loc/$fname does not exist.";return}#open file and count the linesset file [open $loc/$fname "r"]set nol 0while {[gets $file line] &gt;= 0} {incr nol}close $file#msg the channelputserv "privmsg $chan :there are $nol lines in $loc/$fname"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11046">doggo</a> — Mon Aug 20, 2012 5:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2012-08-19T00:20:04-04:00</updated>

		<published>2012-08-19T00:20:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99905#p99905</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99905#p99905"/>
		<title type="html"><![CDATA[Count number of lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99905#p99905"><![CDATA[
hello, looking for a script then when typing !count filename it will count the number of lines of the filename (the file will be in scripts/ folder)<br><br>i.e.<br><br>!count Work.txt<br>&lt;Bot&gt; there are 14 lines in scripts\work.txt<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Sun Aug 19, 2012 12:20 am</p><hr />
]]></content>
	</entry>
	</feed>
