Unix shell script to search for most occurences of a keyword


Question:

UNIX shell script to search for most occurences of a keyword

1. Write a UNIX shell script that will search current directory for a text file that has the most occurrence of a given keyword, and display it on the terminal.

2. For example, if I want to search for a text file/script that contains the most number of for loop statements, and have it displayed on the screen, How would I do that?

Solution Preview :

Prepared by a verified Expert
Software Engineering: Unix shell script to search for most occurences of a keyword
Reference No:- TGS01936594

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)