The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-30-2008
gio001 gio001 is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 70
Select command to build menu

Hello everyone.
I am using the select command to build a menu, here is my question:
Is it possible to generate a menu which contains several sections and have a separator between the sections without having a selection number generated in front of the separator?
This is a sample of what I would like to generate:

Menu title
--------Subtitle 1 ----------
1) Selection1
2) Selection2
3) Selection3
--------Subtitle 2 ----------
4) Selection4
5) Selection5
6) Selection6

followed by a Prompt controlled by PS3

Any suggestions are welcome, I know I could possibly use a while or other ways to create the menu, yet Select does such a great job ....
Thanks.