Redirect standard output (Sobell, page 138) of echo to write a short mes- sage to a file and then use cat to display the contents of the file.

The echo builtin copies its arguments to standard output which, by default,

bash directs to the screen.

$ echo This message goes to standard output.

This message goes to standard output.



The cat utility sends the contents of a file specified by its argument to stan-

dard output.

$ echo hi there > hi.file
$ cat hi.file
hi there

Computer Science & Information Technology

You might also like to view...

In the OpenOffice Calc application, the intersection of each row and column is an individual ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which of the following is the correct stack after those commands (assume the top of the stack is on the left)?

A stack is initially empty, then the following commands are performed: push 5 push 7 pop push 10 push 5 pop a. 5 10 7 5 b. 5 10 c. 7 5 d. 10 5

Computer Science & Information Technology