LPI
102-500 · Question #172
What output will the following command sequence produce? 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 #172. The question stem and answer options stay visible for context.
Shells and Shell Scripting
Question
What output will the following command sequence produce? echo '1 2 3 4 5 6' | while read a b c; do echo result: $c $b $a; done
Options
- Aresult: 3 4 5 6 2 1
- Bresult: 1 2 3 4 5 6
- Cresult: 6 5 4
- 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#field splitting#pipes#bash scripting