Question: 1) Write a program that will take the information from two data files and produce an output file 2) The script will be called project2.sh


1) Write a program that will take the information from two data files and produce an output file 2) The script will be called project2.sh and the output files will be called project2.12.out and project2.24.out. See item e below 3) Requirements of the script: a) Use a Bourne shell for script processing Output redirection should be accomplished within the script, not on the command line Fully document the script. Explain what you're doing. Points will be deducted for any undocumented entries. Must use the input data files exactly as shown below. You will create them. Accept a Command Line Parameter of either 12 or 24 to determine how to display the start time information on the report. If no parameter is passed, default to 12 hour standard. NOTE: This will also affect the name of the output file that is created b) c) d) e) f You MUST use a looping structure within the script to process one or both data files. g) The contents of each of the input data files are shown below. Input file 1: project2.1.input Input file 2: project2.2.input Dave 734.838.9800 Bob 313.123.4567 Carol 248.344.5576 Mary 313.449.1390 Ted 248.496.2204 Alice 616.556.4458 Bob Tuesday 3 Carol Monday 15 Ted Sunday 10 Alice Wednesday 17 Dave Friday 23 Mary Saturday 9 4) The output of your script must look like Student name... Project 2 Current Date/time CIS 129 Sec # Name On-Call Phone Start Time 3 pm 3 am 5 pm Carol Bob Alice Nobody Dave Mary Ted MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY SUNDAY 248.344.5576 313.123.4567 616.556.4458 734.838.9800 313.449.1390 248.496.2204 11pm 9 am 10 am
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
