#cli #search #demo

bin+lib sample-grrs

A tool to search files

1 unstable release

0.1.0 Dec 23, 2022

#2178 in Command line utilities



Command Line Application

A clone for the popular grep command that takes in a pattern and a file path to give all of the lines with the occurances.

Right now only default patterns are supported with exact match.


You can install the project using the cargo install command.

cargo install <package_name>

Note: Here replace <package_name> with whatever the name of the package is :)

Running locally

To run, please use:

cargo run -- <pattern> <file_path>
cargo run -- main main.rs


There are some sample tests in the files unit.rs and cli.rs which check for unit tests and CLI test respectively. Feel free to run them if you decide to contribute!


~42K SLoC