Question: This lab has three shell programs to create and review: one called svi.sh, another called uon.sh, and the command_menu program on page 456 (or page

This lab has three shell programs to create and review: one called svi.sh, another called uon.sh, and the 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 particular piece of code will do in the program. For the first two parts replace the "????" characters below with your comments, i.e., clarify what those lines do in the program.

First Part

#!/bin/bash # name / date ????????????????? # purpose of the program ????????????????

if test $# = 1 # ??? then if test -f $1 # ??? then cp $1 $HOME/keep #??? vi $1 else echo " file not found.Try again" fi else echo "You must specify a file name. Try again." fi

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.

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!