
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.thelinuxwiki.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Bash_select_menu</id>
		<title>Bash select menu - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Bash_select_menu"/>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=Bash_select_menu&amp;action=history"/>
		<updated>2026-04-29T06:04:28Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.5</generator>

	<entry>
		<id>http://www.thelinuxwiki.com/index.php?title=Bash_select_menu&amp;diff=97&amp;oldid=prev</id>
		<title>Nighthawk: Pushed from Themanclub.</title>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=Bash_select_menu&amp;diff=97&amp;oldid=prev"/>
				<updated>2013-02-25T22:25:58Z</updated>
		
		<summary type="html">&lt;p&gt;Pushed from Themanclub.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Example select menu ==&lt;br /&gt;
  #!/bin/bash&lt;br /&gt;
  OPTIONS=&amp;quot;Hello Break Exit&amp;quot;&lt;br /&gt;
  select opt in $OPTIONS; do&lt;br /&gt;
    if [ &amp;quot;$opt&amp;quot; = &amp;quot;Exit&amp;quot; ]; then&lt;br /&gt;
      echo &amp;quot;exiting script with command exit&amp;quot; &lt;br /&gt;
      exit &lt;br /&gt;
    elif [ &amp;quot;$opt&amp;quot; = &amp;quot;Hello&amp;quot; ]; then&lt;br /&gt;
      echo Hello World&lt;br /&gt;
      break&lt;br /&gt;
    elif [ &amp;quot;$opt&amp;quot; = &amp;quot;Break&amp;quot; ]; then&lt;br /&gt;
      echo &amp;quot;you chose to Break select menu and continue script&amp;quot;&lt;br /&gt;
      break&lt;br /&gt;
    else&lt;br /&gt;
      echo bad option, try again &lt;br /&gt;
    fi&lt;br /&gt;
  done&lt;br /&gt;
  #&lt;br /&gt;
  echo &amp;quot;end of script.  this is printed unless you choose Exit from the menu which executes the exit command and terminates the script at that point.&amp;quot;&lt;/div&gt;</summary>
		<author><name>Nighthawk</name></author>	</entry>

	</feed>