LPI
102-500 · Question #15
What output is produced by the following command sequence? echo `1 2 3 4 5 6' | while read a b c; do echo result $c $b $a; done
Sign in or unlock 102-500 to reveal the answer and full explanation for question #15. The question stem and answer options stay visible for context.
Shells and Shell Scripting
Question
What output is produced by the following command sequence? echo `1 2 3 4 5 6' | while read a b c; do echo result $c $b $a; done
Options
- Aresult: 6 5 4
- Bresult: 1 2 3 4 5 6
- Cresult: 3 4 5 6 2 1
- Dresult: 6 5 4 3 2 1
- Eresult: 3 2 1
Unlock 102-500 to see the answer
You've previewed enough free 102-500 questions. Unlock 102-500 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#read command#pipes and redirection#variable expansion#word splitting