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]

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
Get step-by-step solutions from verified subject matter experts
