Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

67. What will be the result if you run the line below (no argument): $ ./cat_file.sh 68. What will be the result if you run

67. What will be the result if you run the line below (no argument): $ ./cat_file.sh 68. What will be the result if you run the line below (One argument: foo) For your information, the argument foo is not a file. $ ./cat_file.sh foo 5 Assumed that you are given the following code: $ cat for_test.sh #! /bin/bash # # demonstrates the simple for loop for arg do echo $arg done 69. What will be the result if you run the line below $ ./for_test.sh foo bar bletch Assumed that you are given the following code: $ cat count_to_five.sh #! /bin/bash # # this script demonstrates the three statement for loop for (( count=1; count<=5; count++ )) do echo $count done 70. What will be the result if you run the line below $ ./count_to_five.sh Assumed that you are given the following code: $ cat count_to_nine.sh #! /bin/bash # number=0 while [ $number -lt 10 ] do echo -n $number (( number += 1)) done 71. What will be the result if you run the line below $ ./count_to_nine.sh 6 Assumed that you are given the following code: $ cat forever.sh #! /bin/bash # # this loop runs forever number=0 while [ $number -lt 10 ] do echo $number done 72. What will be the result if you run the line below $ ./forever.sh Assumed that you are given the following code: $ cat count_until.sh #! /bin/bash # # counts from 1 to its argument, then stops if [ $# -eq 0 ] then echo Usage: $(basename $0) NUMBER exit 1 fi number=1 until [ $number -gt $1 ] do echo $number (( number += 1)) done 73. What will be the result if you run the line below $ ./count_until.sh 74. What will be the result if you run the line below $ ./count_until.sh 10

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

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

=+vii. Bullet points to emphasize important ideas.

Answered: 1 week ago