<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://crunchbang.org/forums/extern.php?action=feed&amp;type=rss&amp;tid=19482" rel="self" type="application/rss+xml" />
		<title><![CDATA[CrunchBang Linux Forums / Baby Level 99: Shell Script Greeting using Cowsay and date]]></title>
		<link>http://crunchbang.org/forums/viewtopic.php?id=19482</link>
		<description><![CDATA[The most recent posts in Baby Level 99: Shell Script Greeting using Cowsay and date.]]></description>
		<lastBuildDate>Wed, 09 May 2012 21:57:19 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Baby Level 99: Shell Script Greeting using Cowsay and date]]></title>
			<link>http://crunchbang.org/forums/viewtopic.php?pid=217266#p217266</link>
			<description><![CDATA[<p>And every time they do, 2ct are sent to numbered account in Switzerland.</p>]]></description>
			<author><![CDATA[dummy@example.com (Awebb)]]></author>
			<pubDate>Wed, 09 May 2012 21:57:19 +0000</pubDate>
			<guid>http://crunchbang.org/forums/viewtopic.php?pid=217266#p217266</guid>
		</item>
		<item>
			<title><![CDATA[Re: Baby Level 99: Shell Script Greeting using Cowsay and date]]></title>
			<link>http://crunchbang.org/forums/viewtopic.php?pid=217263#p217263</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Congratulations on your first AI.</p></div></blockquote></div><p>That&#039;s what people always say! D: </p><p>hah</p>]]></description>
			<author><![CDATA[dummy@example.com (lurka)]]></author>
			<pubDate>Wed, 09 May 2012 21:48:05 +0000</pubDate>
			<guid>http://crunchbang.org/forums/viewtopic.php?pid=217263#p217263</guid>
		</item>
		<item>
			<title><![CDATA[Re: Baby Level 99: Shell Script Greeting using Cowsay and date]]></title>
			<link>http://crunchbang.org/forums/viewtopic.php?pid=216978#p216978</link>
			<description><![CDATA[<p>Congratulations on your first AI.</p>]]></description>
			<author><![CDATA[dummy@example.com (Awebb)]]></author>
			<pubDate>Wed, 09 May 2012 07:52:07 +0000</pubDate>
			<guid>http://crunchbang.org/forums/viewtopic.php?pid=216978#p216978</guid>
		</item>
		<item>
			<title><![CDATA[Re: Baby Level 99: Shell Script Greeting using Cowsay and date]]></title>
			<link>http://crunchbang.org/forums/viewtopic.php?pid=216976#p216976</link>
			<description><![CDATA[<p>^ Morning Rho!</p><div class="codebox"><pre><code>ls /usr/share/cowsay/cows/</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (machinebacon)]]></author>
			<pubDate>Wed, 09 May 2012 07:43:56 +0000</pubDate>
			<guid>http://crunchbang.org/forums/viewtopic.php?pid=216976#p216976</guid>
		</item>
		<item>
			<title><![CDATA[Re: Baby Level 99: Shell Script Greeting using Cowsay and date]]></title>
			<link>http://crunchbang.org/forums/viewtopic.php?pid=216973#p216973</link>
			<description><![CDATA[<p>moo! what are the different cows?</p>]]></description>
			<author><![CDATA[dummy@example.com (rhowaldt)]]></author>
			<pubDate>Wed, 09 May 2012 07:36:59 +0000</pubDate>
			<guid>http://crunchbang.org/forums/viewtopic.php?pid=216973#p216973</guid>
		</item>
		<item>
			<title><![CDATA[Baby Level 99: Shell Script Greeting using Cowsay and date]]></title>
			<link>http://crunchbang.org/forums/viewtopic.php?pid=216748#p216748</link>
			<description><![CDATA[<div class="codebox"><pre><code>#!/bin/bash
COW_PATH=/usr/share/cows

files=($COW_PATH/*.cow)    
N=${#files[@]}
((N=RANDOM%N))
cow=${files[$N]}


h=`date +%H`
case $h in
    0[0-9]|1[0-1]) greeting=&quot;Good morning!&quot;
    ;;
    1[2-9]) greeting=&quot;Good afternoon!&quot;
    ;;
    2[0-4]) greeting=&quot;Good evening!&quot;
    ;;
esac

cowsay -f $cow $greeting

exit 0</code></pre></div><br /><br /><p>Tip: May need to modify COW_PATH- This was tested on Arch Linux.</p>]]></description>
			<author><![CDATA[dummy@example.com (lurka)]]></author>
			<pubDate>Tue, 08 May 2012 22:46:51 +0000</pubDate>
			<guid>http://crunchbang.org/forums/viewtopic.php?pid=216748#p216748</guid>
		</item>
	</channel>
</rss>
