Question: Create a script where the script takes one argument, and the value provided will be the full path to a file. Each line in the
Create a script where the script takes one argument, and the value provided will be the full path to a file. Each line in the file will be the full path to an existing file, so loop through the file and read each line one at a time and count the number of times a file contains the word ERROR (hint use 'wc' command to help with counting) and output the total number of errors at the end of the script?(do as full code including arguments)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
