Question: Unix In a script.sh - Take three arguments: a directory, a file pattern, and a search string - Look for the search string inside the

Unix

In a script.sh

- Take three arguments: a directory, a file pattern, and a search string

- Look for the search string inside the files determined by the directory and the file pattern.

- Print the number of files that contain the pattern

- Print the names of the files that contain the pattenumrn

- Calculate the average words per file in all the .doc files in the directory. The calculation must be to four decimal places.

- Print the average words per file for the .doc files

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!