Crates.io | sample-grrs |
lib.rs | sample-grrs |
version | 0.1.0 |
source | src |
created_at | 2022-12-23 07:53:23.900499 |
updated_at | 2022-12-23 07:53:23.900499 |
description | A tool to search files |
homepage | https://github.com/probro27/sample-cli-application |
repository | https://github.com/probro27/sample-cli-application |
max_upload_size | |
id | 744336 |
size | 22,833 |
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 :)
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!