If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > while loop shell scripting help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-02-11, 20:32
beerpong beerpong is offline
Registered User
 
Join Date: Jul 2011
Posts: 3
while loop shell scripting help

hi i was wondering if someone can help me with a while loop..i have been looking at this for hours and dont no wut to do..
i have to make a menu style.. to have a beeter understanding i have linked a photo at the bottom...

Description: If the “output.txt” file does not exist, then the user is presented immediately with the Main Menu. The user is kept locked into the menu interface, until option # 5 is entered. The while/do/done looping construct is to be used to achieve this. Each menu item is processed using the case/esac branching construct.

1)option 1
2)option 2
3)option 3
4)option 4

5)exit

enter menu option:


click on the bleary pic it will become bigger..
unix - MyPicx.com
Reply With Quote
  #2 (permalink)  
Old 08-03-11, 07:13
kitaman kitaman is offline
Papabi's friend
 
Join Date: Sep 2009
Location: Ontario
Posts: 629
I will help you do your homework, but I will not do it for you.
Post what you have done so far.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On