Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write an interactive script using bash scripting to request the user to create a new record with values for - the employee id -

1. Write an interactive script using bash scripting to request the user to create a new record with values for - the employee id - the employee name - the department - the post The data values are stored into a text file called employee.txt

2. Enter a minimum of ten records into the file employee.txt

3. Write a script to read and display all the records from the file employee.txt

4. Write a command to search for all employees in the Sales department

5. Write a command to search for all employees working as Machinist

6. Write a command to search for employees whose names start with letter S.

7. Write a command to count the total number of employees stored in the file employee.txt.

8. Write a command to count the number of employees posted in the Sales department.

9. Record number 6 given in the screen shot above shows the department audit written with a lowercase letter a. Write a command to update the lowercase letter a into uppercase A.

10. Write a script with appropriate information messages to contain the commands from question 4 up to question 9.

image text in transcribed

EmployeelD12345678EmployeeNameLionelBeckhamDavidDuvalBenazirCheongSamanthaKounisMelanieBerengerSanjayGuptaJoannaHartePatrickHossenallyDepartmentSalesHRAuditProductionSalesauditHRSalesPostMarketingAssistantManagerComplianceofficerMachinistSalesOfficerAccountantConfidentialSecretaryDataEntryOfficer

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

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

Draw a labelled diagram of the Dicot stem.

Answered: 1 week ago