Write a shell script that will read a file name and pattern from the command line and check whether that pattern exist in file and if exist then count total no. of words in the lines where pattern found
Write a shell script that will read a file name and pattern from the command …