December 2002
Intermediate to advanced
1616 pages
39h 57m
English
| 1. | The following shell script adds entries to a file named journal-file in your home directory. The script can help 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 >> $file
echo -n "Enter name of person or group: "
read name
echo "$name" >> $file
echo >> $file
cat >> $file
echo "--------------------------------------------------------" >> $file
echo >> $file
|
| 2. | What are two ways you can execute a shell script when you do not have execute ... |
Read now
Unlock full access