Question: 4. [12] Write a bash shell script called alertwhich accepts a command line argument, searches a comma-separated value (CSV) data file, and meets the following

 4. [12] Write a bash shell script called alertwhich accepts acommand line argument, searches a comma-separated value (CSV) data file, and meetsthe following requirements: The format of the data file is as follows:

4. [12] Write a bash shell script called alertwhich accepts a command line argument, searches a comma-separated value (CSV) data file, and meets the following requirements: The format of the data file is as follows: FIELD customer id account number usage plan FORMA1T alphanumeric numeric numeric alphanumeric * Compare the usage field of the CSV data file field to the value specified by the user (command line argument) Display all entries whose value is greater than that specified Your script must search the usage field only -- no unintentional matches with other fields (e.g. account number, etc.) If there are no records whose usage is greater than the value specified, print the message "There are no customers with usage greater than ". Substitute specified value in message as in example below. For this question, your program must read the data file on a line-by-line basis. (Do not split the data file into multiple files by field. Do not assign the entire output to a single variable.) * * * * o You must clean up any temporary files which you used. * You must not use sed, awk, perl, or any non-Unix utilities or commands. . Use the sample data file provided (~lhiraki/open/ccps393/usagecsv). Your program must still work with any CSV file of the format specified above, not just the sample data file Match the format of your output with the sample shown below

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!