Modify rolo to look for a file .rolo in each rolo user's home directory that contains the full pathname to that user's phone book file. For example:
$ cat $HOME/.rolo
/users/steve/misc/phonebook
$
This one's really easy, just a few lines of code need to be added. Here's how the beginning of the script should now read:
if [ -s $HOME/.rolo ] ; then
PHONEBOOK=$(cat $HOME/.rolo)
else
: ${PHONEBOOK:=$HOME/phonebook}
fi
export PHONEBOOK
Computer Science & Information Technology
You might also like to view...
What is the maximum number of scenarios supported by Scenario Manager?
A) 50 B) 45 C) 23 D) 32
Computer Science & Information Technology
Given the following function prototype: ? double tryMe(double, double); ? which of the following statements is valid? Assume that all variables are properly declared.
A. cin >> tryMe(x); B. cout << tryMe(2.0, 3.0); C. cout << tryMe(tryMe(double, double), double); D. cout << tryMe(tryMe(float, float), float);
Computer Science & Information Technology