Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Test#1 CS405 Spring 2018 B. Analyze the output from the shell seripts (Total 20 points, 5 points per question a) What will be printed from

image text in transcribed
Test#1 CS405 Spring 2018 B. Analyze the output from the shell seripts (Total 20 points, 5 points per question a) What will be printed from this program?b) What will be printed from this program? /bin/bash X-0 while [ SX -le 10] #1/binibash line[11-100 line[2]-200 echo S(S(line[1)+S(line[2])) line[3]-"CS405" line14]- "Linux Programming echo S(line[3] echo $(line[41) do echo SX X-$(0X+1) done d) What will be printed from this program if the user enters-12 c) What will be printed from this program if the user enters "Emily" and "emily"? #1 bin/bash echo "Please enter two strings:" read strl str2; if I Sstrl Sstr2 ] then echo "two strings are the same."; else echo "two strings are different."; # !/bin/bash echo-n "Enter a number between 1 and 3 read character case Scharacter in 1 ) echo "You entered one." 2) echo "You entered two." 3) echo "You entered three." *) echo "You did not enter a number echo "Job is done!"; echo "between 1 and 3. esac

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

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions

Question

In linear regression, compare independent and dependent variables.

Answered: 1 week ago