<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Tech-Recipes - Latest Comments in Simple Menu for User Input</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><atom:link href="https://tech-recipes.disqus.com/simple_menu_for_user_input_bourne_shell_scripting_tech_recipes/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 26 Nov 2010 08:27:32 -0000</lastBuildDate><item><title>Re: Simple Menu for User Input</title><link>http://www.tech-recipes.com/rx/983/simple-menu-for-user-input/#comment-103454974</link><description>&lt;p&gt; `newline or ;' is not expected.&lt;br&gt;at the end of file&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Deepa Ca</dc:creator><pubDate>Fri, 26 Nov 2010 08:27:32 -0000</pubDate></item><item><title>Re: Simple Menu for User Input</title><link>http://www.tech-recipes.com/rx/983/simple-menu-for-user-input/#comment-9932718</link><description>&lt;p&gt;there are sever problems in his, try this, its still not perfect, but it works:&lt;br&gt;#!/bin/bash&lt;/p&gt;&lt;p&gt;## Clears the screen and builds the user input screen&lt;/p&gt;&lt;p&gt;function screen() {&lt;br&gt;clear&lt;br&gt;cat &amp;lt;&amp;lt;eof ####################################################################="" ##="" main="" screen="" for="" input="" ##="" ####################################################################="" ##="" ##="" ##="" user="" name:="" [________________________________________]="" ##="" ##="" directory:="" [________________________________________]="" ##="" ##="" group:="" [________________________________________]="" ##="" ##="" ##="" ####################################################################="" ##="" [="" preferences="" ]="" [="" other="" info="" ]="" ##="" ####################################################################="" ##="" [_]="" show="" email?="" [_]="" receive="" news?="" ##="" ##="" [_]="" show="" address?="" [_]="" receive="" rss?="" ##="" ####################################################################="" eof="" }="" ##="" this="" will="" echo="" out="" the="" contents="" of="" the="" helpstring="" variable="" ##="" below="" the="" screen="" function="" showhelp()="" {="" tput="" cup="" 14="" 0="" ##="" clear="" out="" the="" last="" information="" echo="" "="" "="" tput="" cup="" 14="" 0="" echo="" $helpstring="" }="" ##="" display="" the="" screen="" screen="" ##="" set="" up="" the="" help="" information,="" and="" call="" the="" showhelp="" function="" ##="" that="" displays="" it="" helpstring="Enter the user or press ENTER to quit" showhelp="" tput="" cup="" 4="" 15="" read="" username="" ##="" if="" they="" don't="" enter="" a="" username,="" quit="" if="" [="" "$username"="" ]="" then="" exit="" fi="" ##="" now="" go="" through="" and="" get="" the="" other="" data="" helpstring="Enter Home Directory" showhelp="" tput="" cup="" 5="" 15="" read="" directory="" helpstring="What group does $username belong to?" showhelp="" tput="" cup="" 6="" 15="" read="" group="" helpstring="Do you want to show the Email Address to others? [y/n" showhelp="" tput="" cup="" 11="" 4="" read="" showemail="" helpstring="Do you want to show your Home Address to others [y/n]" showhelp="" tput="" cup="" 12="" 4="" read="" showaddress="" helpstring="Would you like to receive the News Letter?" showhelp="" tput="" cup="" 11="" 24="" read="" getnews="" helpstring="Would you like to receive the RSS Feed?" showhelp="" tput="" cup="" 12="" 24="" read="" getrss="" helpstring="Thank you for your input" showhelp="" echo="" ""=""&amp;gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LukeS</dc:creator><pubDate>Mon, 25 May 2009 13:39:34 -0000</pubDate></item><item><title>Re: Simple Menu for User Input</title><link>http://www.tech-recipes.com/rx/983/simple-menu-for-user-input/#comment-8598027</link><description>&lt;p&gt;when i just copy paste your script and try to run, i encountered with below error, please suggest what is wrong... and thx for your script...&lt;br&gt;===============&lt;br&gt;ERROR:&lt;br&gt;&lt;a href="http://user-input.sh" rel="nofollow noopener" target="_blank" title="user-input.sh"&gt;user-input.sh&lt;/a&gt;: line 7: syntax error near unexpected token `newline'&lt;br&gt;&lt;a href="http://user-input.sh" rel="nofollow noopener" target="_blank" title="user-input.sh"&gt;user-input.sh&lt;/a&gt;: line 7: `cat &amp;lt;'&lt;br&gt;=================&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sunny</dc:creator><pubDate>Thu, 23 Apr 2009 00:41:52 -0000</pubDate></item></channel></rss>