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
Get step-by-step solutions from verified subject matter experts
