7. Write a menu driven shell script which will print the following menu and execute the given task. MENU 1) Display calendar of current month 2) Display today’s date and time 3) Display usernames those are currently logged in the system 4) Display your name at given x, y position 5) Display your terminal number 6) Exit Complete code of the program i=0 while [ $i != 6 ] do echo "Menu 1. Display calender of current Month 2. Display today's date and time 3. Display usernames of those who are currently logged in the ststem 4. Display your name at given x, y position 5. Display Terminal Number 6. Exit Choose your option and enter corresponding value" read i case "$i" in 1) calender="$(cal)" echo "Here is your Calender " echo "$calender" ;; 2) current="$(date)" ...
Comments