Which of the following commands will output "one two three"?
Show answerHide answer
Correct answer: (C) For n in one two three; do echo-n $n; done
Explanation
The for loop "for n in one two three; do echo -n $n; done" iterates n over the words one, two and three and echoes each, so it gives the output "one two three". So the answer is (c).