Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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." fiStep 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