Results 1 to 1 of 1
I try to do this question, please can u tell me the answer to be sure of my answer
(
A shell script should be named insert_record.sh and its purpose ...
- 10-18-2009 #1Just Joined!
- Join Date
- Oct 2009
- Posts
- 1
help to find answer
I try to do this question, please can u tell me the answer to be sure of my answer
(
A shell script should be named insert_record.sh and its purpose is to insert a record into a database.
It accepts one argument, which is the DATABASE_NAME. The insert_record.sh script should then prompt the user for the values of the fields in that database.
After that the script should read in the field values and append these values in a new line to the end of the DATABASE_NAME.db file. Finally, the script should print a message that the new database record has been added.
For instance, below is an example session of using the insert_record.sh script.
( the green field values would be entered by the user.)
$ ./insert_record.sh svu
ENTER VALUES FOR name age weight: Ahmad 42 75
RECORD ADDED TO " svu" DATABASE.
If the DATABASE_NAME does not exist in the databases.txt file or the DATABASE_NAME.db does not exist, then you should print an appropriate error message and exit.
)
Thank you


Reply With Quote