Вы находитесь на странице: 1из 2

Course: Core Skills Module: Problem Solving Topic: UNIX Shell Scripting Associ te Supporting M teri ls Pr ctice Set

Exercise 1:
Enter data from keyboard for the following fields of several book records for a library of books: Book accession number Subject code Book_id Author Year of Publication itle of the book Publisher!s name Price Year of "ublication must be before 1996 Book_id must be unique# Publisher$ Author and the title of the Book cannot be entered blank. Subject code can only be either %&'( or )# he Book accession numbers must be in ascending order#

Validations to be made:

Exercise 2 E*tend e*ercise + for deleting the s"ecified records from the library database: he scri"t should acce"t a book number and check whether the book e*ists# 'f it does$ dis"lays the details of that book# hen asks for the confirmation to delete# ,n confirmation deletes the book form the database# Exercise 3 A friend has "romised to log in at a "articular time# -owever$ he needs to be contacted as soon as he logs in# he shell scri"t checks after every minute whether he has logged in or not# he login name should be su""lied to the shell scri"t at the command "rom"t# %se the until loo"# Exercise 4 Acce"t a file name from keyboard# he scri"t should check whether the file e*ists or not and whether it is a readable file or a directory# he contents of an ordinary

readable file should be dis"layed# 'n case of a directory file$ the following menu should be dis"layed for the user to enter his choice for a""ro"riate dis"lay of information from the directory: ./ 0ist in the reverse order 0/ 0ong list -/ 0ist with hidden files !e"erences: #ooks: 1. UNIX Concepts & Applications, Sumitabha Das

Вам также может понравиться