Question: 1 / 2 7 / 2 2 , 1 0 : 3 1 AM Linux Lab Final Exam Dashbeard / My courses / Linux Lab

1/27/22,10:31 AM
Linux Lab Final Exam
Dashbeard / My courses / Linux Lab(Iripoli-Section A -193186) Fall 2021-2022/ General /
Question 1
Not yet answered
Marked out of 3.00
Given the below code:
#!/bin/bash
while getopts ":1:" option;
do
case soption in
echo -n "Enter Key: "
read passwords
if [[ $OPTARG = "finals" && $password =-""1122"]];
then
echo "Today's Key is 101."
else
echo "Wrong Key!"
fi
; ;
echo "Missing args!"
; ;
echo "Wrong System."
; ;
esac
done
What is the output if we have the following in the terminal =>
/finals.sh - I finals
Enter Key: 1122
a. Missing args!
b. Wrong System.
c. Today's Key is 101.
d. Wrong Key!
e. Syntax Error
 1/27/22,10:31 AM Linux Lab Final Exam Dashbeard / My courses /

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!