Question: 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
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
Get step-by-step solutions from verified subject matter experts
