#!/bin/bash

# My script

#Assignment Number :150

#Name :John

#Student Number :786

#labSection Number :1CS

#Name of the Scriptfile : UserGroup

#Date :03/28/2016

#while loop for repeat process

set ch="A"

while ($ch!="")

     echo -n "Please Enter your Choice"

     set ch =$<

     if($ch!="") then

             echo "your selected choice is"   

      endif

end

#ch = 'Please Enter your Choice'

options = ("A","B","C","D","E","F","Quit")

select opt in "${options[@]}"

do

     case $opt in

            "A")

                echo "Create a user account"

                     ;;

            "B")

                echo "Delete a user account"

                     ;;

            "C")

                echo "Change supplementary group for a user account"

                    ;;

            "D")

               echo "Change initial group for a user account"

                   ;;

            "E")

               echo "Change default login shell for a user account"

                   ;;

            "F")

               echo "Change account expiration date for a user account"

                   ;;

            "Quit")

               break;

               ;;

             *) echo invalid option;;

        esac

done 