Question: I need to write a VIM UNIX/Linux commandline program using the tools sed, sort, uniq and printf to search a logfile. For someone that know

I need to write a VIM UNIX/Linux commandline program using the tools sed, sort, uniq and printf to search a logfile. For someone that know linux it should be a simple matter and only take a few minutes. I hope you have someone there with those qualifications because I am lost on this assignment.

Just send me the code. Here is the first part of what it needs to do:

I need to write a VIM UNIX/Linux commandline program using the tools

Requirements Your script shall be named flog and be marked executable. Here is how you execute your script: ./flog LOGFILE Example ./flog /var/classes/cs3030/lab3/secure Your script shall search LOGFILE for all lines containing this string "Failed password for USERID" where USERID is either the name of a user or the word "invalid". You are to perform the following operations: Change the word "invalid" to Count the number of every failed password messages for each user (including ) Sort the output first by number of occurrences in descending order, then by userid in ascending Output a header with the current date as shown below Punctuate all large numbers with commas for readability (hint: printf) Produce an HTML document on stdout with html>, ,

and
tags as shown should be output using the HTML characters " Print Usage: flog LOGFILE and exit with return code 1 if the user does not specify a LOGFILE on the commandline. Do not prompt the user for anything

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!