Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2005
    Posts
    41

    Unanswered: Complex While loop and For loop logic help

    Hi,

    I've a file called list and it has several choices like:

    sprint
    story
    theme

    Each of the choices in list can be further sub-divided, ie: Sprint can be divided into:

    A
    B
    C
    D

    I want help in script where user is given a choice from a list, and they select one of them. Once a choice is selected, user should be presented with its associated sub-choices and should either pick them or reject them. This loop should continue until all the choices and their associated sub-choices have been either accepted or rejected.

    I am writing this in bourne shell. Any help would be appreciated.

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Talking Homework?

    show us what you have written so far on this homework assignment?.
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •