<?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 on: How to show interactive YES/NO prompt in Bash</title>
	<atom:link href="http://www.techpulp.com/blog/2009/02/how-to-show-interactive-yes-no-prompt-in-bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techpulp.com/blog/2009/02/how-to-show-interactive-yes-no-prompt-in-bash/</link>
	<description>The pulp of technology</description>
	<lastBuildDate>Mon, 30 Jan 2012 07:42:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Harry</title>
		<link>http://www.techpulp.com/blog/2009/02/how-to-show-interactive-yes-no-prompt-in-bash/#comment-100</link>
		<dc:creator>Harry</dc:creator>
		<pubDate>Sat, 18 Dec 2010 16:29:45 +0000</pubDate>
		<guid isPermaLink="false">http://techpulp.com/?p=580#comment-100</guid>
		<description>You can also restrict the number of characters to read using &quot;-n&quot; option like following. Following option &quot;-n1&quot; make read command to expect one character as input.

bash# read -n1 -p &quot;Would you like to continue (y/n)? &quot; choice
bash# echo $choice

Similarly you can set timeout for input using &quot;-t&quot; option. In the following example, the read wait for 5 seconds for input using &quot;-t5&quot; option.

bash# read -t5 -n1 -p &quot;Would you like to continue (y/n)? &quot; choice
bash# echo $choice</description>
		<content:encoded><![CDATA[<p>You can also restrict the number of characters to read using &#8220;-n&#8221; option like following. Following option &#8220;-n1&#8243; make read command to expect one character as input.</p>
<p>bash# read -n1 -p &#8220;Would you like to continue (y/n)? &#8221; choice<br />
bash# echo $choice</p>
<p>Similarly you can set timeout for input using &#8220;-t&#8221; option. In the following example, the read wait for 5 seconds for input using &#8220;-t5&#8243; option.</p>
<p>bash# read -t5 -n1 -p &#8220;Would you like to continue (y/n)? &#8221; choice<br />
bash# echo $choice</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry</title>
		<link>http://www.techpulp.com/blog/2009/02/how-to-show-interactive-yes-no-prompt-in-bash/#comment-99</link>
		<dc:creator>Harry</dc:creator>
		<pubDate>Sat, 18 Dec 2010 16:23:43 +0000</pubDate>
		<guid isPermaLink="false">http://techpulp.com/?p=580#comment-99</guid>
		<description>You can combine both echo and read command using &quot;-p&quot; option with read command.

For example:
read -p &quot;Which color you like the most (red/green/blue)? &quot; color
echo Your choice is $color</description>
		<content:encoded><![CDATA[<p>You can combine both echo and read command using &#8220;-p&#8221; option with read command.</p>
<p>For example:<br />
read -p &#8220;Which color you like the most (red/green/blue)? &#8221; color<br />
echo Your choice is $color</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kolorowanki</title>
		<link>http://www.techpulp.com/blog/2009/02/how-to-show-interactive-yes-no-prompt-in-bash/#comment-55</link>
		<dc:creator>Kolorowanki</dc:creator>
		<pubDate>Mon, 29 Jun 2009 21:48:31 +0000</pubDate>
		<guid isPermaLink="false">http://techpulp.com/?p=580#comment-55</guid>
		<description>Great tutorial, I only draw but will pass your post address to my programmer. He will love it. Thanks for sharing.
Regards,
Matt Kolorowanki,
Illustrator</description>
		<content:encoded><![CDATA[<p>Great tutorial, I only draw but will pass your post address to my programmer. He will love it. Thanks for sharing.<br />
Regards,<br />
Matt Kolorowanki,<br />
Illustrator</p>
]]></content:encoded>
	</item>
</channel>
</rss>

