Question: I need help with this exercise! command_menu program on page 456 (or page 444 in the third edition of the textbook). On the first two

I need help with this exercise!

I need help with this exercise! command_menu program on page 456 (or

command_menu program on page 456 (or page 444 in the third edition of the textbook). On the first two programs add your comments about what those lines of the code do after the # symbol describing briefly what that particularpiece of code will do in the program. The last part of this lab is to create and test the command menu program with There are three files to create, test out, and submit through D2L. Points will be subtracted for scripts that do not execute correctly. For the first two parts replace the "????" characters below with your comments, ie. clarify what those lines do in the program. I recommend that you start with creating the command_menu program exactly as it is in the book, then run it to make sure all options operate correctly. Once you are confident that it was typed correctly add one additional command of your choosing, and test that new command. Part 1 wmorales@syccuxas01:~> cat svi.sh /bin/bash name / date ????????????????? # purpose of the program ???????????? if test $# 1 # ??? then if test -f $1 # ??? then cp $1 vi $1 $HOME/keep #??? else echo "file not found.Try again" Fi else echo "You must specify a file name. Try again." fi After replacing the question marks with your explanation, test it on a short text file. Before uploading the script svi.sh, make a copy named svi.sh.txt, convert it to DOS format using the command unix2dos, transfer it to your computer using psftp or filezilla, then upload it to D2L Part 2 In vim create the file uon.sh. For the second and third comment lines insert your name and date. The lines that contain are comments to the program, Replace the ??? with your comments explaining what happens in that line of the program. Submit the program with your name using the following command wmorales@syccuxfs01:>cat uon.sh #2 /bin/bash Your Name # Date #uon.sh: this program will ???????? until who | grep "$1" > /devull #?????????? do sleep 30 #..??????.. done echo "$1 is logged on." exit 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!