View the step-by-step solution to:

***I have full doc Please let me know and I will provide documentation*** Create directory, with permissions 700, called FinalScript in your home...

***I have full doc Please let me know and I will provide documentation***

Create directory, with permissions 700, called FinalScript in your home directory on the COD Linux server. Create the necessary script and data files to complete the program according to the given specification. Verify that the required file permissions have been set to allow read and execute capability for all users. The program will be tested (from your FinalScript subdirectory) and graded using the following Grading Rubric

Possible Points

Your Points

dailyUserProcs.YYYY0430 (where YYYY is the current year) sample daily logfile in FinalScript subdirectory

5 script file in FinalScript subdirectory with comment at top and appropriate permissions set

5 functionality

• Usage message

10 menu functionality

• Daily Processes

10 menu functionality

• Users

10 menu functionality

• Total Process Time for User


Total Script Program Points


CIS1450 - Introduction to Linux/Unix Operating Systems

Final Script Program

Student Name:

Online CIS1450 2 Final Script Program

This program combines the material presented in Unit 8 Bash and Scripting, Unit 9 Regular Expressions, and Unit 10 Using Regular Expressions. It may be beneficial to review the material contained in all these units to help in completion of this program.

A daily logfile contains the server processes run by each employee in the company. This logfile has the following data on each line of the file (fields separated by |):

user name|process name|process time (in minutes)

The file below, dailyUserProcs.YYYY0430 is an example daily logfile for one day (where YYYY is the current year, the next 2 digits are the month and the final two digits are the day).






smiths|Time Reporting|210


northj|Server Maintenance|70

northj|Logfile Reporting|45

denniss|Report Printing|80

smithd|Payroll Program Updates|150

smithd|Benefit Program Updates|180






a) Create daily logfile, dailyUserProcs.YYYY0430, in the FinalScript subdirectory. Although your program will be tested a daily logfile other than the one you create, the above daily logfile has the same layout and will help in testing your program.

Online CIS1450 3 Final Script Program

b) Create bash script file called, also in the FinalScript subdirectoy, that does the following:

• Includes comment at top of script file with your name, file, date, class and short description

• Processes the daily logfile as a command line argument—if daily logfile is not included as command line argument, usage message is displayed and script program exits

• Presents the following numbered menu options to the user. The user will select one of the menu options. Based upon user selection, the listed action will be executed against the daily logfile passed as a command line argument.

Menu Option


1 - Daily Processes

Extract the process names and use a filtering command to sort (in ascending order) and uniquely display (no duplicates) the process names

2 - Users

Extract the user names and use a filtering command to sort (in ascending order) and uniquely display (no duplicates) the user names

3 - Total Process Time for User

Prompt and read user name. Extract lines from data file with given user name. Sum up and display, with descriptive output message, the total process time for user name.

Online CIS1450 4 Final Script Program

c) Confirm that script file ( is in the FinalScript subdirectory of your home directory with the correct permissions for all to read and execute. Paste a copy of the contents of this script file in the textbox below (textbox will become scrollable if more text is included than can be displayed):

Online CIS1450 5 Final Script Program

Sample Output - the following screenshots have been provided as a resource to help you when testing your program.

Usage message when no argument is passed:

Menu with data file argument and option 1 selected:

Online CIS1450 6 Final Script Program

Menu with data file argument and option 2 selected:

Menu with data file argument and option 3 selected:

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question