Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Introduction to UNIX with Shell Scripting 1) This is a multi-faceted project. Write a script that will take the information from the data file and

Introduction to UNIX with Shell Scripting

1) This is a multi-faceted project. Write a script that will take the information from the data file and make the output as shown below. Also, write a menu that will allow the printing, addition or deletion of a book from the data file.

2) Requirements of the script:

a) You can use any shell, but you must identify the script on the first line.

b) Must start with the input data files exactly formatted as shown below.

c) Write a menu system, using sub-functions, that will allow the following functionality:

a. Format and send the data to the screen, as formatted in section 4.

b. Print to classroom printer.

c. Add a book to the database.

d. Remove a book from the database.

d) The menu must show on the screen in color. Please use a different color for each function.

e) Fully document (comment) all aspects of your script. Explain what you're doing. Points will be deducted for any undocumented entries.

f) A looping structure MUST be used to process the data files someplace in the script.

g) The file output must be sorted by ISBN, the third column. h) Make sure the ISBN numbers are formatted like the example output.

i) Make sure that when the script is run that the current date is shown.

j) Your script MUST be called project2.ksh.

k) The data file MUST be called books.data

3) The contents of the initial data file.

Clive Cussler,Ghost Ship,9780399167317

Clive Cussler,Bootlegger,9780399167294

James Patterson,Invisible,9780316405348

James Patterson,Gone,9781455515844

James Rollins,Map of Bones,9780062017857

Michael Connelly,The Lincoln Lawyer,9781455516346

David Baldacci, The Escape,9781478984344

CIS129 Project 2

4) The output should look like:

****************************************

* CIS129 Project 2 Your Name *

* Current date and time *

****************************************

Author Name of Book ISBN

Clive Cussler Ghost Ship 978-0399-16731-7

Clive Cussler Bootlegger 978-0399-16729-4

James Patterson Invisible 978-0316-40534-8

James Patterson Gone 978-1455-51584-4

James Rollins Map of Bones 978-0062-01785-7

Michael Connelly The Lincoln Lawyer 978-1455-51634-6

David Baldacci The Escape 978-1478-98434-4

5) The menu should look something like.

****************************************

* CIS129 Project 2 Menu *

* Your Name *

* Current date and time *

****************************************

1. Show the book inventory to the screen.

2. Print the book inventory.

3. Add a book to the inventory.

4. Remove a book from the inventory.

Please select a number from the list below (1 4)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

AutoCAD Database Connectivity

Authors: Scott McFarlane

1st Edition

0766816400, 978-0766816404

More Books

Students also viewed these Databases questions