LPI
101-500 · Question #339
What is the output when the following shell script executes? Cat <<foobar Hello foobar foobar
The correct answer is D. Hello foobar. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Shells and Shell Scripting
Question
What is the output when the following shell script executes? Cat <<foobar Hello foobar foobar
Options
- AThe contents of the file foobar
- BHello
- CNo output but a file named foobar is created
- DHello foobar
- EHello foobar
How the community answered
(40 responses)- A3% (1)
- C5% (2)
- D93% (37)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#here-document#shell-scripting#input-redirection
Community Discussion
No community discussion yet for this question.