Consider the following script. The output will be newlines replaced by spaces for brevity) : #! /bin/bash
counter=1
while [ $counter -le 2]
do
echo $counter
done
A) 5 .. 1
B) 5 4 3 2 1
C) 1 2 3 4 5
D) 1 1 1 1 1 1 ……. indefinitely)
Correct Answer:
Verified
Q15: A specific set of commands is to
Q16: Shell scripts can obtain user input using
Q17: The command that will create a new
Q18: The first line of an executable script
Q19: Shell scripts are used for
A) Serving as
Q20: Environment variables are
A) Variables describing the user's
Q21: Consider the following script. The output
Q22: The difference between break and continue while
Q23: A specific set of commands is to
Q24: An infinite loop a loop that runs
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents