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

	<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>2009-06-17T10:03:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-06-17T10:03:23-04:00</updated>

		<published>2009-06-17T10:03:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89222#p89222</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89222#p89222"/>
		<title type="html"><![CDATA[getting todays date]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89222#p89222"><![CDATA[
Since you are posting in Shell &amp; Bouncer Help, I assume you are writing a shellscript?<br>In such case, that would somewhat depend on your shell. Most do provide the <strong class="text-strong">date</strong> binary, which generally supports formatting (see <a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?date" class="postlink">http://unixhelp.ed.ac.uk/CGI/man-cgi?date</a> ).<br><br>Something like this should do the trick (bash-style, other shells may have different syntax):<div class="codebox"><p>Code: </p><pre><code>somevar=`date +%m%d`</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Jun 17, 2009 10:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pinkel]]></name></author>
		<updated>2009-06-17T05:42:24-04:00</updated>

		<published>2009-06-17T05:42:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89217#p89217</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89217#p89217"/>
		<title type="html"><![CDATA[getting todays date]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89217#p89217"><![CDATA[
How can I get todays date in format: mmdd<br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9942">pinkel</a> — Wed Jun 17, 2009 5:42 am</p><hr />
]]></content>
	</entry>
	</feed>
