Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

4. Under what circumstances would you want to use a router?

Answered: 1 week ago

Question

sharing of non-material benefits such as time and affection;

Answered: 1 week ago