PrepAway - Latest Free Exam Questions & Answers

What is the output when the following shell script executes?

What is the output when the following shell script executes?

Cat <<foobar
Hello foobar
foobar

PrepAway - Latest Free Exam Questions & Answers

A.
The contents of the filefoobar

B.
Hello

C.
No output but a file namedfoobar is created

D.
Hellofoobar

E.
Hellofoobar

4 Comments on “What is the output when the following shell script executes?

  1. Gerson Aluisio says:

    In the test I did in fedora 19 the correct answer is C, please test because the Red Hat fedora is due to redirection of the command cat

    No output but a file namedfoobar is created




    0



    0

Leave a Reply