3.5 Exercises
3.5.1 Redirection
See Section 12.0.3 for solutions.
Create a directory “human” and enter it. Use echo to write ”completely empty” to a file called brain.txt.
Print the content of brain.txt to the screen.
Append “…but still so smart” to “brain.txt”.
Create two additional empty files “heart.txt” and “soul.txt”. Use
lsto write the content of your directory to a file called “allEmpty.txt”. Usecatto verify the content.Use
bcto calculate the product of 23 and 57.