Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the ouput of the following commands greaterorlessthan.sh #!/bin/bash someNumber=5 if (( $someNumber > 10 ) then echo $someNumber is greater than 10 else

image text in transcribed

image text in transcribed

image text in transcribed

What is the ouput of the following commands greaterorlessthan.sh #!/bin/bash someNumber=5 if (( $someNumber > 10 ) then echo $someNumber is greater than 10 else echo $someNumber is not greater than 10 fi ./greaterorlessthan.sh someNumber is greater than 10 5 is greater than 10 someNumber is not greater than 10 O 5 is not greater than 10 What is the output of the following code for the file : example.sh #!/bin/bash echo Starting the script! ${somevariable:?"What happened!"} echo some variable is $somevariable echo I can\'t believe that happened Starting the script! ./example.sh: line 4: someVariable: What happened! Starting the script! some variable is What happened! I can't believe that happened Starting the script! I can't believe that happened Starting the script! some variable is What happened! What is the output of the following code shiftyUntil.sh !!!/bin/bash input Variables="$2" continue=$1 until [$continue = "no" ]] do echo You Input: $continue shift continue=$1 done echo You\'re Done! ./shiftyUntil.sh no ifs ands or buts O You input: no You input:ifs You input: ands You input: or You input: buts O You're Done! O You input: no You're Done! You input: no You input: no You input no (infinitely repeating)

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_2

Step: 3

blur-text-image_3

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

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

0764549634, 9780764549632

More Books

Students also viewed these Databases questions

Question

Explain the security risk of the password manager.

Answered: 1 week ago

Question

2. Why has the conflict escalated?

Answered: 1 week ago

Question

1. How will you, as city manager, handle these requests?

Answered: 1 week ago