Write a basic version of the Unix utility "grep. It works as follows:
grep [ -v -i] textstring filename
- With no options selected, grep will print out each line in the
file that (exactly) includes "textstring".
- With the "-i" option selected, grep will ignore upper/lower case
distinctions.
- With the "-v" option selected, grep prints out only those lines
which do not include "textstring".
Note, I do not expect you to implement full pattern matching, just
matching for alphabetic strings. Also you may want to check out the
man page for "grep" to get more info.