Write the following script files.

Write a script file that shows the following menu and calls appropriate commands according to the user selection.
My Super Duper menu
0: Exit
1: List Current Directory Files
2: Show Who Is Logged In

# menu program
tput clear
echo "0: exit"
echo "1: List Current Directory Files
echo "2: Show Who Is Logged In
echo "Selection: \c"
read selection
# checking the selection
case $selection in
0) exit ;;
1) ls l ;;
2) who ;;
*) echo "sorry, wrong function"
esac

Computer Science & Information Technology

You might also like to view...

________ are the nonprinting lines between columns and rows in a table

A) Headers B) Table gridlines C) Cells D) Slide gridlines

Computer Science & Information Technology

_____________ logs record changes that occur to the data in a database over time.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology