Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 14th East European Conference Adbis 2010 Novi Sad Serbia September 2010 Proceedings Lncs 6295

Authors: Barbara Catania ,Mirjana Ivanovic ,Bernhard Thalheim

2010th Edition

3642155758, 978-3642155758

More Books

Students also viewed these Databases questions