Question: The following shell script adds entries to a file named journal-file in your home directory. This script helps you keep track of phone conversations and

 The following shell script adds entries to a file named journal-file

The following shell script adds entries to a file named journal-file in your home directory. This script helps you keep track of phone conversations and meetings. $ cat journal \# journal: add journal entries to the file \# \$HOME/journal-file file=$HOME/ journal file date >> \$ile echo n "Enter name of person or group: " read name echo "\$name" >> \$file echo >>$ \$ile cat > file echo "- \$file echo > > $ile a. What do you have to do to the script to be able to execute it? b. Why does the script use the read builtin the first time it accepts input from the terminal and the cat utility the second time

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!