Question
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.
EmployeelD12345678EmployeeNameLionelBeckhamDavidDuvalBenazirCheongSamanthaKounisMelanieBerengerSanjayGuptaJoannaHartePatrickHossenallyDepartmentSalesHRAuditProductionSalesauditHRSalesPostMarketingAssistantManagerComplianceofficerMachinistSalesOfficerAccountantConfidentialSecretaryDataEntryOfficer
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started