<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for rhau.se</title>
	<atom:link href="http://rhau.se/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://rhau.se</link>
	<description>The home of Thorsten Rhau on the Internet</description>
	<lastBuildDate>Sun, 08 Jan 2012 01:40:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>Comment on A solution to Potential DNS DDoS: named query (cache) &#8216;./NS/IN&#8217; denied by meho</title>
		<link>http://rhau.se/2009/01/29/a-solution-to-potential-dns-ddos-named-query-cache-nsin-denied/comment-page-1/#comment-2917</link>
		<dc:creator>meho</dc:creator>
		<pubDate>Sun, 08 Jan 2012 01:40:07 +0000</pubDate>
		<guid isPermaLink="false">http://rhau.se/?p=67#comment-2917</guid>
		<description>the fix for this is actually pretty easy. Deny recursive requests in bind.</description>
		<content:encoded><![CDATA[<p>the fix for this is actually pretty easy. Deny recursive requests in bind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Time Machine for Linux &#8211; Bash and Rsync by Sunil Kumar</title>
		<link>http://rhau.se/2009/08/29/time-machine-for-linux-bash-and-rsync/comment-page-1/#comment-2209</link>
		<dc:creator>Sunil Kumar</dc:creator>
		<pubDate>Mon, 28 Nov 2011 14:36:24 +0000</pubDate>
		<guid isPermaLink="false">http://rhau.se/?p=303#comment-2209</guid>
		<description>Very good solution for backup, It has eased my backup process a lot. Thanks.</description>
		<content:encoded><![CDATA[<p>Very good solution for backup, It has eased my backup process a lot. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Shell Script Examples: case, count, for, if, while and User input by Thorsten</title>
		<link>http://rhau.se/2009/04/17/shell-script-examples-case-count-for-if-while-and-user-input/comment-page-1/#comment-2187</link>
		<dc:creator>Thorsten</dc:creator>
		<pubDate>Sun, 27 Nov 2011 08:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://rhau.se/?p=248#comment-2187</guid>
		<description>Here is a non complete sample of how you can solve the problem. Please observe that bc is used instead of expr for calculations with decimals. The scale variable tells bc how many decimals to use when computing the numbers.

#!/bin/bash
clear
echo -n &quot;First number: &quot;
read N1

echo -n &quot;Second number: &quot;
read N2

echo -n &quot;Third number: &quot;
read N3

echo &quot;
A Add
M Multiply
V Average
&quot;
echo -n &quot;Please choose A, M or V: &quot;
read JOB

case $JOB in
  a&#124;A)
    expr $N1 + $N2 + $N3
    ;;
  m&#124;M)
    expr $N1 \* $N2 \* $N3
    ;;
  v&#124;V)
    TOTAL=`expr $N1 + $N2 + $N3`
    echo &quot;scale=2;$TOTAL / 3 &quot; &#124; bc -l
    ;;
  *) echo wrong choice;;
esac</description>
		<content:encoded><![CDATA[<p>Here is a non complete sample of how you can solve the problem. Please observe that bc is used instead of expr for calculations with decimals. The scale variable tells bc how many decimals to use when computing the numbers.</p>
<p>#!/bin/bash<br />
clear<br />
echo -n &#8220;First number: &#8221;<br />
read N1</p>
<p>echo -n &#8220;Second number: &#8221;<br />
read N2</p>
<p>echo -n &#8220;Third number: &#8221;<br />
read N3</p>
<p>echo &#8221;<br />
A Add<br />
M Multiply<br />
V Average<br />
&#8221;<br />
echo -n &#8220;Please choose A, M or V: &#8221;<br />
read JOB</p>
<p>case $JOB in<br />
  a|A)<br />
    expr $N1 + $N2 + $N3<br />
    ;;<br />
  m|M)<br />
    expr $N1 \* $N2 \* $N3<br />
    ;;<br />
  v|V)<br />
    TOTAL=`expr $N1 + $N2 + $N3`<br />
    echo &#8220;scale=2;$TOTAL / 3 &#8221; | bc -l<br />
    ;;<br />
  *) echo wrong choice;;<br />
esac</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Shell Script Examples: case, count, for, if, while and User input by Thorsten</title>
		<link>http://rhau.se/2009/04/17/shell-script-examples-case-count-for-if-while-and-user-input/comment-page-1/#comment-2185</link>
		<dc:creator>Thorsten</dc:creator>
		<pubDate>Sun, 27 Nov 2011 08:18:38 +0000</pubDate>
		<guid isPermaLink="false">http://rhau.se/?p=248#comment-2185</guid>
		<description>I would use “read” to get user input. Example:
#!/bin/bash
read USERINPUT
echo $USERINPUT

For the math bit there is a nifty utility called expr. Example:
expr 12 + 12

will return the result of 24

I hope that this helps you
/thorsten</description>
		<content:encoded><![CDATA[<p>I would use “read” to get user input. Example:<br />
#!/bin/bash<br />
read USERINPUT<br />
echo $USERINPUT</p>
<p>For the math bit there is a nifty utility called expr. Example:<br />
expr 12 + 12</p>
<p>will return the result of 24</p>
<p>I hope that this helps you<br />
/thorsten</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Shell Script Examples: case, count, for, if, while and User input by bigron</title>
		<link>http://rhau.se/2009/04/17/shell-script-examples-case-count-for-if-while-and-user-input/comment-page-1/#comment-2180</link>
		<dc:creator>bigron</dc:creator>
		<pubDate>Sat, 26 Nov 2011 23:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://rhau.se/?p=248#comment-2180</guid>
		<description>Hi i would like to know how to write a math script that ask the user for three numbers. gives the user three options to choose from: add,multiply and average. I also would like to use a case statement to make it work, save as one function.

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi i would like to know how to write a math script that ask the user for three numbers. gives the user three options to choose from: add,multiply and average. I also would like to use a case statement to make it work, save as one function.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Time Machine for Linux &#8211; Bash and Rsync by expekt</title>
		<link>http://rhau.se/2009/08/29/time-machine-for-linux-bash-and-rsync/comment-page-1/#comment-87</link>
		<dc:creator>expekt</dc:creator>
		<pubDate>Mon, 10 May 2010 21:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://rhau.se/?p=303#comment-87</guid>
		<description>I see a lot of interesting posts here. I have bookmarked for future referrence.</description>
		<content:encoded><![CDATA[<p>I see a lot of interesting posts here. I have bookmarked for future referrence.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Updated: Ubuntu 9.04 on the Asus Eee Pc 1000H with ACPI and WiFi/Wlan working by sts</title>
		<link>http://rhau.se/2009/03/27/ubuntu-904-on-the-asus-eee-pc-1000h-with-acpi-and-wifiwlan-working/comment-page-1/#comment-86</link>
		<dc:creator>sts</dc:creator>
		<pubDate>Fri, 07 May 2010 12:55:37 +0000</pubDate>
		<guid isPermaLink="false">http://rhau.se/?p=147#comment-86</guid>
		<description>Excellent article i am sure that i will come back here soon</description>
		<content:encoded><![CDATA[<p>Excellent article i am sure that i will come back here soon</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A solution to Potential DNS DDoS: named query (cache) &#8216;./NS/IN&#8217; denied by Anonymous</title>
		<link>http://rhau.se/2009/01/29/a-solution-to-potential-dns-ddos-named-query-cache-nsin-denied/comment-page-1/#comment-84</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 17 Apr 2010 15:29:40 +0000</pubDate>
		<guid isPermaLink="false">http://rhau.se/?p=67#comment-84</guid>
		<description>interesting - i will try to configue fail2ban to do this also</description>
		<content:encoded><![CDATA[<p>interesting &#8211; i will try to configue fail2ban to do this also</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Time Machine for Linux &#8211; Bash and Rsync by Free tattoo designs</title>
		<link>http://rhau.se/2009/08/29/time-machine-for-linux-bash-and-rsync/comment-page-1/#comment-82</link>
		<dc:creator>Free tattoo designs</dc:creator>
		<pubDate>Wed, 14 Apr 2010 14:03:28 +0000</pubDate>
		<guid isPermaLink="false">http://rhau.se/?p=303#comment-82</guid>
		<description>I came across your website, i think your blog is cool, keep us posting.</description>
		<content:encoded><![CDATA[<p>I came across your website, i think your blog is cool, keep us posting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Updated: Ubuntu 9.04 on the Asus Eee Pc 1000H with ACPI and WiFi/Wlan working by Thorsten</title>
		<link>http://rhau.se/2009/03/27/ubuntu-904-on-the-asus-eee-pc-1000h-with-acpi-and-wifiwlan-working/comment-page-1/#comment-75</link>
		<dc:creator>Thorsten</dc:creator>
		<pubDate>Sat, 19 Sep 2009 20:26:34 +0000</pubDate>
		<guid isPermaLink="false">http://rhau.se/?p=147#comment-75</guid>
		<description>I installed 9.04 on my EEE at the same time this article was published. I have had no problems with WPA2 or dual WLAN NICs since then. I use WPA2 at home. Sorry that i can not help you.

On the other hand: 9.10 is coming out in a few weeks ........</description>
		<content:encoded><![CDATA[<p>I installed 9.04 on my EEE at the same time this article was published. I have had no problems with WPA2 or dual WLAN NICs since then. I use WPA2 at home. Sorry that i can not help you.</p>
<p>On the other hand: 9.10 is coming out in a few weeks &#8230;&#8230;..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

