Requirements:
Grep should behave like Unix Grep for the most part.
At first we'll just make it a super simple version of grep with just a few command line options.
The program...
- Must be called grep. It should build grep.exe.
- Must be a CLI program.
- -r or -R means recursive search.
- -v means invert match. Find things that don't match this pattern.
- -l suppress normal output and just show file names.
- -i ignore case.
- Syntax should look like this: grep <options> <pattern> <file/directory>
- Options are optional. Options begin with - and are 1 character. (-r,-v, -i or -l for now).
- Pattern is required.
- File/directory is optional, defaults to all files in current directory. Uses regex to match when used.
- Should output like: <file> <matching line in file> ex: default.html: