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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started