Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

motuzj/sudo-grep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sudo-grep

sudo-grep [OPTION]... PATTERN [FILE]...

Options

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.

Building

To build project, you can use either make or you can build directly with gcc.

make

Testing

For testing, you must have sudo-grep in the root directory of the project.

make test

Test file format

The .in and .out files have specific formats for defining test cases.

.in format:

test name
arguments
  • test description: A description for the test case.
  • arguments: An agruments to run sudo-grep with. (options + pattern)

.out format:

expected output
  • expected output: The expected output when running the test case.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published