Question: In C(not C++), write a program (lab2.c) which searches the file for a given pattern, string, or expression. The command grep in UNIX performs a


In C(not C++), write a program (lab2.c) which searches the file for a given pattern, string, or expression. The command grep in UNIX performs a similar task (with more advanced options). Your executable program lab1 should perform the same as the utility grep in two cases: without options and with option -c You can use grep to check the correctness of your project. Example Suppose the file "lab2.c" contained the following information: Include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
