Loading practice questions
Which of the following shell scripts will produce the output "my first script"?
Correct Answer: B — for i in my first script; do echo -n $i; done
Explanation:
The script iterates through the words "my", "first", and "script", printing each consecutively to produce the full sentence.