sudo-grep [OPTION]... PATTERN [FILE]...
The following options are available for sudo-grep
:
-i
/--ignore-case
: Ignore case in pattern and input data.-v
/--invert-match
: Invert the sense of matching, to select non-matching lines.-R
/--recursive
: Read all files under each directory, recursively.
To build project, you can use either make
or you can build directly with gcc
.
make
For testing, you must have sudo-grep
in the root directory of the project.
make test
The .in
and .out
files have specific formats for defining test cases.
test name
arguments
test description
: A description for the test case.arguments
: An agruments to runsudo-grep
with. (options + pattern)
expected output
expected output
: The expected output when running the test case.