Question: Upload script is_ordfile.sh to canvas with pscp or scp. Script should use test utility to first check that that an argument was provided by the

Upload script is_ordfile.sh to canvas with pscp or scp. Script should use test utility to first check that that an argument was provided by the user and the argument is the name of an ordinary file, not a directory, that exists. Replace the test commands with square braces such as [expressions]Upload script is_ordfile.sh to canvas with pscp or scp. Script should usetest utility to first check that that an argument was provided by

ordfile.sh c hecks if ordinary file if test $# -eq 0 #argument provide then echo "Must supply at least 1 argument." exit 1 #missing line here-please correct if test -f "$1" #exists and ordinary #missing line here-please correct echo "$1 is an ordinary file." else echo "$1 is NOT an ordinary file." fi

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!