Skip to content

l3olton/cgrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cgrep

A project for me to learn a bit about programming in C.

Usage

cgrep [pattern] [optional path] [optional flags...]

The program can be run with a single argument - a regex pattern, and will search the current directory and sub-directories for matches:

image

An optional second argument can be passed, a path to a file or directory to search:

image

An optional flag can be passed, --json, that will format the output as json:

image

flags

--json - format output as json

Development

Build

Run build.sh from the root of the project

sh build.sh

Testing

cd into the test directory and run test.py

cd test
python3 test.py

About

Recursively search subdirectories for a regex pattern

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors